Hi
I use this factions script https://github.com/JimmyX99/vRP-FiveM/tree/master/vrp_factions (I did not make any changes to the plugin)
and when i start the server give this error https://prnt.sc/ufv84k
Can someone help me ?
Hi
I use this factions script https://github.com/JimmyX99/vRP-FiveM/tree/master/vrp_factions (I did not make any changes to the plugin)
and when i start the server give this error https://prnt.sc/ufv84k
Can someone help me ?
Try changing the server_scripts section in the __resource.lua file to this:
server_scripts{
'@vrp/lib/utils.lua',
'@vrp/lib/Tools.lua',
'server.lua'
}
If i remember correctly this should work.
now i have this https://prnt.sc/ug2gxo
The function in vRP needs two parameters for the module function, so in the server.lua, change line 1 to this:
local cfg = module("vrp_factions", "cfg/factions")
now gave me https://prnt.sc/ug2ygx and i put
server_scripts{
'@vrp/lib/utils.lua',
'@vrp/lib/Tools.lua',
'@mysql-async/lib/MySQL.lua',
'server.lua'
}
and have this now
If you have the resource vrp_mysql then try this.
MySQL = module("vrp_mysql", "MySQL")
At the beginning of the server file.
gave me this
i put this
vRP = Proxy.getInterface("vRP")
gave me this
i put this
local Proxy = module("vrp", "lib/Proxy")
and now have a lot of code
this is the current files
I just checked vrp_basic_menu and in there, the vRP.registerMenuBuilder takes a table as a parameter, so i would use this My edited version (i just made it in to tables in the two registerMenuBuilders). I also think there will be a problem on all of the vRP.getUserId functions, i’m pretty sure that that also should be tables, so like this:
vRP.getUserId({data.player})
instead of:
vRP.getUserId(data.player)
This was an example from line 637.
when i join on server i have a lot of code in server console https://imgur.com/a/bft03VU
when i restart the plugin gave me this https://prnt.sc/ug40w7
The restart errors are normal, thats because of the mysql stuff, but the errors are probably because of the stuff i mentioned in my previous post, have you tried fixing that?
if you mean like this
yea… same problem
edit: i also edited vRP.getUserId(player) with vRP.getUserId({player}) same thing
Im making an edited version, that maybe works.
It’s gonna take some time.
i will wait
ty very much
Try this, i made a lot of parameters into tables, but only on some “native” vRP functions, because the factions plugin does not require tables.
https://hastebin.com/igoriwoceg.rb
I hope it works.
now when i join on server it’s ok but when i access the phone gave me again a lot of code
and i have in the phone the faction group add thing but dont work
Can i see the error?
I am not sure about this, but i think there is an error in the function vRP.hasUserFaction that i think i have fixed.
There is also another error with using client functions. Can you try the code below?
https://hastebin.com/ciguzevoti.rb
work but now i have only this when i acces “Add leader factions” https://prnt.sc/ug6f7f
It seems to be the same problem as the one that was fixed before, i have tried to fix the origin of the error so we don’t have to change something 100 different places.
https://hastebin.com/ajokuwihib.rb