Hi im created a resource with
meta.xml
server.lua
and
client.lua
im making this resource for spawning vehichles with a easy command
my codes are this :
function mveh(theplayer,cmd)
x,y,z = getElementPositon( thePlayer)
veh = createVehicle ( 400 , x , y, z)
end
addCommandHandler("veh",mveh)
i run command /veh in the game and nothing happen
please help me