[Release] vRP Framework


#1188

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


#1189

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


#1190

Help


#1191

How do i open the phone/menu


#1192

Hej Levende_Postej Det virker ikke


#1193

vRP2 @Imagic

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


#1194

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.


#1195

Why its not looks the same


#1196

Looks great.

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


#1197

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.


#1198

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


#1199

Good job :wink:


#1201

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>
steam:1100001081516fa

this is the code i find in server.lua vrp_garages

RegisterServerEvent('ply_garages:CheckGarageForVeh')
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})
		end
      end
      TriggerClientEvent("ply_garages:getVehicles", player, vehicles) 
	end)
end)

#1202

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


#1203

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

Problem ples help


#1205

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


#1207

@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")
Proxy.addInterface("turfs",vRPtwc)


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

#1208

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.


#1209

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”


#1210

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?