CS_VISA
An easy to use visa script to disable certain actions for players that do not have the necessary playtime.
Last updated
Was this helpful?
An easy to use visa script to disable certain actions for players that do not have the necessary playtime.
Last updated
Was this helpful?
In the VisumLevels table you can configure the different visum levels you want to have
Make sure to have an increment of 1 for each level. Like this: [0], [1], [2]
The script offers 3 different webhooks.
visumUpgraded
getvisumcommand
setvisumcommand
If you do not want one of these, just leave the string empty. Like this:
In this example, you would not be notified when a player visa level is upgraded.
If you want to get the visa level of the client, use this export:
If you want to print the visalevel of a certain playerid, use this export like this:
If you want to get the current playtime of a certain playerid, use this export like this:
This export callbacks the playtime that is currently saved in the database and therefore does not give you the correct playtime of the player. So this is only useful in specific cases.
I also added two exports to save either the playtime or the visa level. But these are not to be used. So really make sure, you know what you are doing when using them!
You can find these exports at the bottom of -> script/server/openserver.lua and at the bottom of the fxmanifest.lua.
These exports would be used like this:
If you have any further questions, open a ticket on our discord server: discord.gg/core-services