Hallo Community,
Ich arbeite zur zeit an einem gui wo man autos anfordern kann:
Lua
function ButtonKnopfAutoSpawn ()
local variablen3 = guiComboBoxGetSelected( AutoAuswahl )
if ( variablen3 ) == Taxi then
local Taxi = createVehicle(420, -2523.31396, 226.17844, 11.09375)
elseif ( variablen3 ) == Infernus then
createVehicle ( 420, -697.99207, 977.96570, 19.32278 )
end
end
addEventHandler ( "onClientGUIClick", AnfordernButton, ButtonKnopfAutoSpawn )
wie kann ich machen das die autos fraktion autos sind ?