Hello everyone, I created this script to a gate just do not work in the game as I do?
SFAirport1Gate54 = createObject (3115, -267.79998779297, 3050.6999511719, 103.59999847412, 0, 0, 1.99951171875)
function OpenGates(thePlayer)
local id = getElementModel (thePlayer )
moveObject (SFAirport1Gate54, 5000, -267.79998779297, 3050.6999511719, 118.09999847412)
end
addCommandHandler("carrisu", OpenGates)
function CloseGates(thePlayer)
local id = getElementModel (thePlayer )
moveObject (SFAirport1Gate54, 5000, -267.79998779297, 3050.6999511719, 103.59999847412)
end
addCommandHandler("carrigiu", CloseGates)