
HerculePoirot
Members-
Posts
29 -
Joined
-
Last visited
Everything posted by HerculePoirot
-
[REL] Lunix OS Phone [Messenger, Notes, Music]
HerculePoirot replied to AriosJentu's topic in Resources
Great Job -
Lets say I have a lua file and I copy its content using file functions. Now how can I run that code for a specific client I want from the variable in which the string is saved ( the code of that file).
-
Thank you. Great work
-
can triggerEvent be used client sided to trigger a client sided event on a different client than the client where the triggerEvent was used?
-
Great Tutorial. Good job
-
You can use:- interpolateBetween The examples are good to understand how it works.
-
No error is shown
-
Not Working, now the GUI is also not opening.
-
Not Working
-
Here are the scripts:- The label doesn't shows the rank and deliveries. Server:- function bindRankInfo(player) local accountPlayer = getPlayerAccount(player) local rank = getAccountData(accountPlayer, "Rank") if (rank) then else setAccountData(accountPlayer, "Rank", "Novice") end local deliveries = getAccountData(accountPlayer, "deliveries") if (deliveries) then else setAccountData(accountPlayer, "deliveries", "0") end local team = getPlayerTeam(player) local teamName = getTeamName(team) if ( teamName == "Freight") then triggerClientEvent("rankShow", player, deliveries, rank) end end function binding() bindKey(source,"F5", "up", bindRankInfo) end addEventHandler("onPlayerJoin", getRootElement(), binding) Client :- function jobRankInfo(arg1, arg2) guiSetVisible(GUIEditor.window[2], not guiGetVisible(GUIEditor.window[2])) guiSetText(GUIEditor.label[1], "Your Current Deliveries are :-"..arg1.." You Rank:-"..arg2) guiSetInputEnabled(not guiGetInputEnabled) showCursor ( not isCursorShowing ()) end addEvent("rankShow", true) addEventHandler("rankShow", getRootElement(), jobRankInfo)
-
Thanks Soldsnake14, I didn't knew about that. Thanks Mr.Pres[T]ege, it worked.
-
I defined it in the server side script to create the ped
-
Its not working
-
Its not working
-
The ped exists and there are no errors in script.
-
The showing cursor part works but clicking on ped part does not work.
-
I am trying to make a ped which gives a player job, whenever a player clicks on the ped the job take window should open. Whenever a player presses m cursor should show up or hide.
-
there are no errors in console or debugscript but still its not working:- function pedClick(button, state, x, y, fx, fy, fz, clickedElement) if (button == "left" and state == "up") then if (clickedElement == "pedFreightJob") then guiSetVisible(GUIEditor.window[1], true) end end end addEventHandler("onClientClick", root, pedClick) function cursorShowing(button, press) if (button == "m") then if (press == "false") then showCursor(not isCursorShowing) end end end addEventHandler("onClientKey", root, cursorShowing)
-
Is there any way to detect click on a specific ped?
-
I suggest you to read wikipedia about what are sql queries etc.. and then look at mta db functions.
-
I suggest that you use sql databases to have a list of gangs, use setAccountData for a player to be in a gang and you can also use sql database for associating gangs with their respective colors.
-
You can use tables to make gangs and use radar functions for creating turfs.
-
I think u should use tables and then extract a random entry from it using math.random and use the map assigned to that entry.