Auwa.. ich bins nochmal ..
Hallo,
Wo ist der Fehler ? Er sagt nur das lspdcars im EventHandler Bad Argument ist.
Lua
local lspdcars = {}
lspdcars[1] = createVehicle(596, 1558.72265625 ,-1709.7509765625, 5.6601161956787)
lspdcars[2] = createVehicle(596, 1564.3369140625 , -1709.7509765625 , 5.6606736183167)
lspdcars[3] = createVehicle(596, 1570.435546875 ,-1709.7509765625 , 5.6585936546326)
lspdcars[4] = createVehicle(596, 1574.3955078125 , -1709.7509765625 , 5.6597080230713)
addEventHandler("onVehicleEnter", lspdcars , function ( enterPlayer )
if getAccountData( getPlayerAccount( enterPlayer ) , "fraktion") == 1 then
outputChatBox("Success!", enterPlayer,0,125,0)
else
cancelEvent()
outputChatBox("Denied!", enterPlayer, 125,0,0)
end
end)
Alles anzeigen
mfg.