function joinHandler()
local x = 1959.55
local y = -1714.46
local z = 10
spawnPlayer(source, x, y, z)
fadeCamera(source, true)
setCameraTarget(source, source)
outputChatBox("Welcome to My Server", source)
end
addEventHandler("onPlayerJoin", getRootElement(), joinHandler)
function createVehicleForPlayer ( thePlayer, command, vehicleModel )
local x, y, z = getElementPosition (thePlayer)
x = x + 5
if (createdVehicle == true) then
outputChatBox ("Sucsess to create Vehicle",thePlayer)
if (createdVehicle == false) then
outputChatBox("Failed to create vehicle.",thePlayer)
end
end
addCommandHandler ("vec" , createVehicleForPlayer)
This's all my script.