-
Posts
365 -
Joined
-
Last visited
Posts posted by SkatCh
-
-
didn't work :
-
lol :fp: , can any other one help me .
-
i don't undrestand you can you post an example .
-
guys please i need some help here :
example :
jobsLocation = { {job = "Police Officer", x = 249.6259765625,y = 67.8125,z = 1002.9, r = 67, g = 156, b = 255, int = 6 , dim = 1 , team = "Police Force", skin = {280, 281, 282, 283, 284, 288}, jobEvent = "policeTaken", maxWL = 0, description =" bla bla bla bla bla"},
function ceateJobLocations() for index, val in pairs(jobsLocation) do marker = createMarker(val.x, val.y, val.z-0.5, "cylinder", 1.5, val.r, val.g, val.b, 255) name[marker] = val.job setElementDimension (marker , val.dim ) setElementInterior (marker , val.int) addEventHandler("onMarkerHit", marker, enteredMarker) end end addEventHandler("onResourceStart", resourceRoot, ceateJobLocations)
warnings :
"setElementinterior " [Excepted number at argument 2 , got nil ] and the same warnig with setElementDimension , so please how can i fix it .
-
-
-
-
can you please an example of setGameType .
-
hi guys please i need some help i have two question :
the first one is : how can i update my server to 1.4 ?
and the second is how can i change my gamemode name ? i know that i can change it from Admin panel but the problem i have and my own admin panel so what can i do . thank you
-
np bro i find it .
-
hi guys please i have a question is there any command like "executeCommandHandler" but it can call a key not a command .
exmaple :
execute..........Handler("F2")
.
-
-
hi guys please can any one fix this for me . i want when the player press F11 = close Hud , and if he press it again = Hud open .
i tried this i am new scripter but it dosen't work it just close the Hud .
Note : i create My own Hud it's not GTA Hud so "showPlayerHudComponent" it will never work ,
addEventHandler( "onClientKey", root, function(button,press) if button == "F11" then removeEventHandler("onClientHUDRender", getRootElement(), HudOpening) else addEventHandler("onClientHUDRender", getRootElement(), HudOpening) end end )
-
guys can anyone help me i want when the player press F11 = hud open , if he press it again F11 = hud close .
i tried this one but it just close the Hud . ( Not GTA Hud my own Hud )
addEventHandler( "onClientKey", root, function(button,press) if button == "F11" then removeEventHandler("onClientHUDRender", getRootElement(), HudOpening) else addEventHandler("onClientHUDRender", getRootElement(), HudOpening) end end )
-
nvm bro i fix it by my self thx all .
-
sorry bro it dosent' work .
-
can you give me an example .
-
can any one tell me how can i open and close an event with F11 .
i mean i want to use bindKey .
-
why don't you show the login later?
Or are you talking about the moment they are downloading the code?
it didn't work , just i want the Hud appear when the player start playing . i'm talking about my new hud not Gta sa hud .
-
i think you don't undrestand what i am talking about , i mean when players join my server they can see the Hud before they login .
i tried all events :
"onClientHUDRender"
"onClientPlayerSpawn"
"onClientPlayerJoin"
but the problem still exist .
-
what are you talking about i didn't undrestand nothing can u explane more or give a solution i don't need Client; server event i know them all but just i want the hud appear when the player join the server in other word when the player click login .
-
yes ,
i tried this event "onClientPlayerLogin" but it it doesn't work i still can see the Hud with the login panel .
just i want when the player login hud will be visible not before he login in .
-
hi guys please i need some help i create a new Hud for my server and it's working fine , but the problem when i try to (reconnect or quit and join again) i can see the Hud with the login panel , i want to see it just when the player join the game i used this event , "onClientHUDRender" , is there anyway to fix it .
i'm sorry about my english .
-
thank you can you answer the second question please .
about gui
in Scripting
Posted
client side :
server side: