function vehiclecar ( )
--local accName = getAccountName ( getPlayerAccount ( source ) ) --хз нах это
local oldCar = getElementData( source, 'TaxiCar' )
if oldCar and isElement( oldCar ) then
outputChatBox("Вы уже получали авто",source,255 )
return
end
local x,y,z = getElementPosition ( source )
local car = createVehicle ( 420, x + 3, y, z + 1 )
setElementData( source, 'TaxiCar', car )
outputChatBox("Такси успешно создано",source,255,255,0,false)
end
addEvent( "vehiclecar", true )
addEventHandler( "vehiclecar", root,vehiclecar )