[Release] vRP Framework

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

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

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

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…

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

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

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

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

works for inventory items and such aswell

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

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

How do you change the key to open the menu?

vrp/cfg/client.lua

(20)

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?

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?

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.

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"
}

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: !

Back to 571 server version.

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?

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