Using base Lua functions with VRP


#1

I am trying to add the ability to spawn a vehicle through the cloak rooms. I am getting an error when I use the function GetVehicleHash(“taxi”). The error is: “attempt to call a nil value (global ‘GetHashKey’)”

I copied the code I am using from here:

Any ideas on what to do?


#2

Are you sure you arent using it serverside?


#3

I believe the cloak rooms cfg is a serverside file


#4

You can’t use natives server side.