RegisterCommand('wl9', function(source, args, rawCommand)
local x,y,z = table.unpack(GetOffsetFromEntityInWorldCoords(PlayerPedId(), 0.0, 8.0, 0.5))
vehiclehash = "wl9"
CreateVehicle(vehiclehash, x, y, z, GetEntityHeading(PlayerPedId())+90, 1, 0)
Might not work idk, just wrote it in about 10 seconds
Also in future to format code use the (`) symbol to format it.
View the below to see more, I kinda based mine off of it, but this is a script you might like
This is just a simple resource which you can use to spawn any car in front of you. I noticed some people having issues using
this (old) topic so decided to upload my own version which i made a few weeks ago but never released it.
Feel free to edit this as you see fit. I will NOT be updating this with any feature requests.
/car <vehicle name> (if you don’t specify a vehicle name the adder will be spawned by default)
CarCommand.zip (1.0 KB)
Download the zip file…