Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: pozalogowaniu
1. Pozalogowaniu do gry
Witajcie mam problem z wybieraniem spawnu po zalogowaniu si?, bo on mi si? wy?wietla w czasie logowania wiem ?e trzeba da? chyba onPlayerLogin ale nie wiem gdzie za pomoc :piwo:
c-side

GUIEditor 
= {
    
button = {},
    
window = {}
}
GUIEditor.window[1] = guiCreateWindow(00220600"Wybierz gdzie chcesz rozpocz?? gr?"false)
guiWindowSetSizable(GUIEditor.window[1], false)

btnsf guiCreateButton(192918169"San Fierro"falseGUIEditor.window[1])

function 
teleportsf (player)
    
guiSetVisible(GUIEditor.window[1], false)
    
showCursor(false)
    
triggerServerEvent("tpsf"rootlocalPlayer)
end
addEventHandler
"onClientGUIClick"btnsfteleportsf )

s-side

function teleportsf (source)
spawnPlayersource, -1971.94470884.9084545.20313 )
end
addEvent
("tpsf",true)
addEventHandler("tpsf"rootteleportsf)