[Release] vRP Framework


Can someone tell me how I can get vRP player id? like this:
local serverId = GetPlayerServerId


Having issues getting the DB to create? All credentials are correct, any one help?




How do i open the phone/menu


Hej Levende_Postej Det virker ikke


vRP2 @Imagic

Sounds great. Do you already know when it could happen? :smiley:


Here is a glimpse of some vRP 2 features, the multi-character and vehicle state: https://www.youtube.com/watch?v=1h3lkYD5uy0

You can beta-test this version by using the dev branch of vRP (same for extensions/DB drivers repositories).
You can also join the discord and request for the #beta-testing channel to discuss about it.

As usual, issues and feature requests for this version should be posted on Github.


Why its not looks the same


Looks great.

Will there be safeguards that you can not get away from a chase with the function? So you can not abuse it.


You can increase the character switch delay or create an extension to notify character load/unload in the chat for example. I think the best “safeguards” for a RP server is a moderation team.


I’ve been thinking about a custom wanted level for a while now. Was first thought to help police in the prosecution and co. Could be quite intressant in the case


Good job :wink:


When i try to buy a car from vrp_showroom it says:

Error running system event handling function for resource vrp_garages: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: server.lua:101: attempt to call a nil value (field 'query')
stack traceback:
        server.lua:101: in upvalue 'handler'
        citizen:/scripting/lua/scheduler.lua:195: in function <citizen:/scripting/lua/scheduler.lua:194>
stack traceback:
        [C]: in function 'error'
        citizen:/scripting/lua/scheduler.lua:41: in field 'CreateThreadNow'
        citizen:/scripting/lua/scheduler.lua:194: in function <citizen:/scripting/lua/scheduler.lua:158>

this is the code i find in server.lua vrp_garages

AddEventHandler("ply_garages:CheckGarageForVeh", function()
	local user_id = vRP.getUserId({source})
	local player = vRP.getUserSource({user_id})
    MySQL.query("vRP/ply_get_vehicles", {user_id = user_id}, function(pvehicles, affected)
      local vehicles = {}
      for k,v in ipairs(pvehicles) do
		if v.veh_type == "car" or v.veh_type == "bike" then
		  table.insert(vehicles, {["vehicle_model"] = v.vehicle_model, ["vehicle_name"] = v.vehicle})
      TriggerClientEvent("ply_garages:getVehicles", player, vehicles) 


Why can’t i use the vehicle inventory? I use vrp_garages and vrp_showroom? :slight_smile: it just says “No owned vehicle near” ?


[vRP] DB driver “vrp_mysql” not initialized yet (42 prepares cached, 0 queries cached).

Problem ples help


You resolve the problem with rollback?
I need it :frowning:


@Imagic dude, i have following problem:
im creating a turf system and now ive got this error:

cfx> Error loading script s_server.lua in resource turfs: s_server.lua:22: attempt to index a nil value (global 'Proxy')
stack traceback:
        s_server.lua:22: in main chunk

and my code:

--local Proxy = module("turfs", "lib/Proxy")
vRP = Proxy.getInterface("vRP")

    while true do
        vRPtwc.createTurfZone(437, 1372.4284667968, -581.91186523438, 74.378555297852, 3.2, 54)


How do you fix map blips that show up blank with their title rather than showing the icon on the map with the correct blip icon and color?

City Hall and Chamber of Commerce have icons and colors coded but they are showing as invisible icons on the map.


Having an issue with vrp2. I cannot get the dB to initialize no matter what I do or what driver I use. (currently ghmattimysql) I always get the “db driver not initialized”


There is no vrp2 in the github code. You realize you have to detail your issue because vrp2 is not a component of the original download. Can you give some more information about your issue and the pack your using?