Using base Lua functions with VRP

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:
https://wiki.fivem.net/wiki/CreateVehicle

Any ideas on what to do?

Are you sure you arent using it serverside?

I believe the cloak rooms cfg is a serverside file

You can’t use natives server side.