Solid Ok, I appreciate your help, but such a rare thing, the script does not work.
This time I put the script as you told me, but this is what happens:
Then, the script is as follows:
givecar.lua
local distance = 5
function giveCar ( thePlayer, command, ... )
if hasObjectPermissionTo (thePlayer, "command.banserial") == true then
local x, y, z = getElementPosition ( thePlayer )
local rotZ = getPedRotation ( thePlayer )
local vehicleName = table.concat({...}, " ")
local vehicleID = getVehicleModelFromName ( vehicleName )
if vehicleID then
local newVehicle = createVehicle ( vehicleID, x, y, z, 0, 0, rotZ )
warpPedIntoVehicle(thePlayer,newVehicle)
if not newVehicle then
outputConsole ( "Failed to create vehicle.", thePlayer )
end
end
end
end
addCommandHandler ( "givecar", giveCar )
Then the meta.xml is as follows:
meta.xml
<meta>
<info author="minigoveya" type="server" version="1.0.0" />
<script src="givecar.lua" type="script" />
</meta>
what did wrong?
P.S: Excuse me, you and everyone who helped and are helping me, for her persistence and my questions.