[Release] vRP Framework


#1059

hello, I do not know how to put a white list add someone to it understands? Would you help me??


#1060

You need to make the job yourself, using transformers, markets, and garages!


#1061

Use build 507, there’s problems with current build and vrp…


#1062

I did not understand! Can not I get the mod that appears in the video? I can not use the mod code that is in the video?

Sorry for my poor english…


#1064

My jobs dont save database, reenter in server dont save back jobs


#1065

how do you whitelist with vrp im looking to make my server private


#1066

Hi, guys, how to add icon on progressbar? Help please.


#1067

Try this :
https://emojipedia.org/food-drink/

works for inventory items and such aswell


#1068

I need to add an icon to the progress bar of food and water (not in the inventory)


#1069

it should work there just aswell just need to add the icon to the “description” of the survival bar


#1070

How do you change the key to open the menu?


#1071

vrp/cfg/client.lua

(20)


#1072

Anyone know where/how to make it so everyone a player uses a medkit they get a ems skill point or when they use a repair kit the get a mechanic skill point? I have the jobs and aptitudes set up but don’t know what the function would be to get the exp points?


#1073

Is there a way to edit vrp_bankrobbery to only allow the user to do this action if there are x amount of certain job online?


#1074

I need some help making where only players with our police whitelist can use my loadout script. But im not sure where to start. Thanks for your help.


#1075

Anyone can tell me why the vRP.tryFullPayment not works here?
(it’s a server script)

AddEventHandler('chatMessage', function(s, n, m)
    local message = string.lower(m)
    local user_id = vRP.getUserId({source})
    --vRPclient.notify(user_id, {user_id})
    local price = 800
    if message == "/rastrear" then
        CancelEvent()
        --------------
        if vRP.tryFullPayment({user_id},price) then 
            TriggerClientEvent('rastrear')
        else 
            vRPclient.notify(user_id, "Dinheiro insuficiente")
        end
    end
end)

I already put this in the start of .lua

local Tunnel = module("vrp", "lib/Tunnel")
local Proxy = module("vrp", "lib/Proxy")

vRP = Proxy.getInterface("vRP")
vRPclient = Tunnel.getInterface("vRP","vRP_vehicle-control")

And this on resource

resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'

dependencies {
	'vrp',
	'vrp_mysql'
}

client_script 'client.lua'
server_scripts{ 
	"@vrp/lib/utils.lua",
	"server.lua"
}

#1076

Hello guys,

I have a “Connection Failed : bad conversion” when i try to go on my server… I use the latest version of FXServer (583) and i only start 2 resources : vrp_mysql & vrp on the server :sleepy:

image

I only change the : vrp/cfg/base.lua just for the database informations…

and i use of course this version of the framework (vRP-FXServer on github) by Imagicthecat…

I usually run my server with essentialmode, but i want to try the vrp framework…

A little screen of my consol with the debug…

And the… error.

image

Thanks for the support :slight_smile: !


#1077

Back to 571 server version.


#1078

No such export createCommand in resource vrp_mysql

When I try to start my server I get this error when loading resource vrp_adv_garages I get this error:

Error loading script server.lua in resource vrp_adv_garages: citizen:/scripting/lua/scheduler.lua:655: No such export createCommand in resource vrp_mysql
stack traceback:
[C]: in function ‘error’
citizen:/scripting/lua/scheduler.lua:655: in metamethod ‘__index’
[string “vrp_mysql/MySQL.lua”]:84: in field ‘createCommand’
server.lua:33: in main chunk
Failed to load script server.lua.

vrp_adv_garages server.lua: https://pastebin.com/uJGX76q9
vrp_mysql MySQL.lua: https://pastebin.com/rivkJWU7

Any solution or suggestion?


#1079

I’m getting an error on my console related to vrp_garages and vrp_dmvschool (from Sighmir), anyone else having the same issue?

Blockquote
InvokeNative: execution failed: Argument at index 1 was null.
Error running system event handling function for resource vrp_garages: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: Execution of native 000000002f7a49e6 in script host failed.
stack traceback:
[C]: in upvalue ‘_in’
citizen:/scripting/lua/natives_server.lua:309: in function ‘TriggerClientEventInternal’
(…tail calls…)
server.lua:105: in local ‘cb’
[string “-- begin MySQL module…”]:45: in upvalue ‘handler’
citizen:/scripting/lua/scheduler.lua:175: in function citizen:/scripting/lua/scheduler.lua:174
stack traceback:
[C]: in function ‘error’
citizen:/scripting/lua/scheduler.lua:41: in field ‘CreateThreadNow’
citizen:/scripting/lua/scheduler.lua:174: in function citizen:/scripting/lua/scheduler.lua:138
InvokeNative: execution failed: Argument at index 1 was null.
Error running system event handling function for resource vrp_dmvschool: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: Execution of native 000000002f7a49e6 in script host failed.
stack traceback:
[C]: in upvalue ‘_in’
citizen:/scripting/lua/natives_server.lua:309: in function ‘TriggerClientEventInternal’
(…tail calls…)
server.lua:59: in local ‘cb’
[string “-- begin MySQL module…”]:45: in upvalue ‘handler’
citizen:/scripting/lua/scheduler.lua:175: in function citizen:/scripting/lua/scheduler.lua:174
stack traceback:
[C]: in function ‘error’
citizen:/scripting/lua/scheduler.lua:41: in field ‘CreateThreadNow’
citizen:/scripting/lua/scheduler.lua:174: in function citizen:/scripting/lua/scheduler.lua:138