function vehicle(thePlayer, command, id)
id = tonumber(id)
if id then
if (id >= 401) and (id <= 611) then
local posX, posY, posZ = getElementPosition(thePlayer)
local createdVehicle = createVehicle(id, posX + 5, posY, posZ, 0, 0, 0, "Crossy")
local vehicleName = getVehicleName(createdVehicle)
warpPedIntoVehicle(thePlayer, createdVehicle)
outputChatBox("Vehicle Created : "..vehicleName, thePlayer)
else if (id <= 400) or (id >= 612) then
outputChatBox("Incorrect ID : "..id, thePlayer)
end
end
end
end
addCommandHandler("v", vehicle)
I was just wondering if that's a good way for code to look like are other coders able to read that with no problems as I want my code as Cleanness and Readable as possible.