-
Posts
304 -
Joined
-
Last visited
Everything posted by FatalTerror
-
Yes i found it but... It work only when the mouse are on top of a GUI element. I want detect the scroll (up and down) not only when he is on a GUI element. Understand ? ^^ Example: I'm mapping and i want change fastly the object. I scroll the mouse and it change the object
-
Hi, Exist one event when the player scroll the mouse on up or down ? Thanks
-
Don't have problem... redirectPlayer() must admin rights, if your script don't have, give him.
-
https://forum.multitheftauto.com/viewtopic.php?f=91&t=38414
-
Make an array like this: countryNames = { ["IT"]="Italy", ["MX"]="Mexico", ["SA"]="SAUDI ARBIA", ["EG"]="EGYPT" } addEventHandler("onPlayerJoin", getRootElement(), function() local country = exports['admin']:getPlayerCountry(source) if country then setElementData(source, "Country", country) local thecountry = countryNames[country] outputChatBox('[JOIN] #ffffff' .. getPlayerName(source) .. '#00FF09 Joined The Server From #FF8900[' .. tostring(thecountry) .. '] ', getRootElement(), 2, 255, 2, true) end end)
-
Big thanks !
-
Client argument: bool showPlayerHudComponent ( string component, bool show ) If you add getLocalPlayer(), it will be server side. BUT getLocalPlayer() works only in client side
-
addEventHandler("onClientGUIClick", getRootElement(), function() if(source == TheBouton)then showPlayerHudComponent ("radar", false) outputChatBox("Radar disabled !", source) end end) Like this ?
-
This don't help me addEventHandler("onClientClick", getRootElement(), function( button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedElement ) if(button == "left")then if(state == "down")then local x, y, z = worldX, worldY, worldZ if x and y and z then -- Move the player to x, y and z end end end)
-
I add emoticons to make the tutorial a little friendly and not as plain text.
-
Ye i see but it don't give me how move him to x, y and z positions
-
I want to player walk automatically of posA to posB I was without touching the keyboard
-
Hi, I want Move the ped of player as if he walked but i don't know if exist an function for it Possible ? Thanks
-
I think he confused with HTML file & PHP File .html file accept only HTML/CSS/Javascript language. The PHP file accept HTML/CSS/Javascript AND the PHP. (for the nuubs )
-
Great, keep it up Where are arguments ? ^^ int getPlayerPoints(element player ) bool setPlayerPoints(element player, int amount) bool takePlayerPoints(element player, int amount) bool givePlayerPoints(element player, int amount)
-
Hi, I'm doing a little GameMode and I need the player to add objects using the mouse pointer. I made it but I want them to be objects as if they were aligned in a grid like Minecraft gamemode If you know how i can do it Tell me Thx, FatalTerror
-
Hi, function addTotalKill(totalAmmo, killer, killerWeapon, bodypart, stealth) local account = getPlayerAccount (killer) if (account) and (killer) then setAccountData(account,"totalkillsdeaths.kills",getAccountData(account,"totalkillsdeaths.kills")+1) setElementData(killer, "Total Kills", getAccountData(account,"totalkillsdeaths.kills")) end end addEventHandler ("onPlayerWasted", getRootElement(), addTotalKill) function addTotalDeath(totalAmmo, killer, killerWeapon, bodypart, stealth) local account = getPlayerAccount (source) if (account) then setAccountData(account,"totalkillsdeaths.Deaths",getAccountData(account,"totalkillsdeaths.Deaths")+1) setElementData(source, "Total Deaths", getAccountData(account,"totalkillsdeaths.Deaths")) end end addEventHandler ("onPlayerWasted", getRootElement(), addTotalKill) function checkAccountKillsDeaths(thePreviousAccount, theCurrentAccount, autoLogin) if (getAccountData(theCurrentAccount,"totalkillsdeaths.kills") == nil) and (getAccountData(theCurrentAccount,"totalkillsdeaths.deaths") == nil) then setAccountData(theCurrentAccount,"totalkillsdeaths.kills",0) setAccountData(theCurrentAccount,"totalkillsdeaths.deaths",0) end end addEventHandler("onPlayerLogin",getRootElement(),checkAccountKillsDeaths) addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), function() call(getResourceFromName("scoreboard"), "addScoreboardColumn", "Total Kills",getRootElement(),1) call(getResourceFromName("scoreboard"), "addScoreboardColumn", "Total Deaths",getRootElement(),2) end)
-
You don't add ? And it's client side... givePlayerMoney use only 1 argument in client-side. bool givePlayerMoney ( int amount ) Try that: function playerMoney() givePlayerMoney ( 12000 ) end addCommandHandler("givemoney", playerMoney)
-
Yeah i like
-
I do it every time ...