-
Posts
395 -
Joined
-
Last visited
Everything posted by HUNGRY:3
-
alright thanks
-
well there is no there thing with this code...
-
hello i have a script i'm trying to make money show in labal but it's not working idk why it's showing 0 when i have about 34355 local cash1 = getPlayerMoney( getLocalPlayer() ) GUIEditor.label[1] = guiCreateLabel(773, 59, 856, 147, "CASH: "..cash1, false, GUIEditor.staticimage[1])
-
Hello i'm here to Show You My Game Mode CvR - Cops Vs Robs about the game mode: there is 2 team cops and robs , in the map there's a blip and the bilp is a bank (A Vehicle) the cops protect the Vehicle from the robs if a rob enter he must go to flag and when he go there he will find a marker so he enter it and robs win if the cops protected it for 10 mins cops win LINK TO DOWNLOAD: http://www.mediafire.com/download/91zak ... CvR%5D.zip COMMANDS: /changeteam -- this will make you go to main window SCREEN SHOTS (OUT DATED): Don't worry it doesn't look really good but at 2.0.0 there will be Dx and awesome things and stuff and i still didn't show you all of the stuff ! i hope you'll like it 1.0.0 UPDATE 2.0.0 in 2.0.0: on the update: - shops make you upgrade your vehicle - Dx window - more spawns - more money vehicle - better back ground :3 more coming soon :3
-
server function wheel1() if isPedInVehicle(source) then addVehicleUpgrade(getPedOccupiedVehicle(source), 1073) end end addEvent("wh1", true) addEventHandler("wh1", root, wheel1 ) client function wh1() if source == GUIEditor_Button[20] triggerServerEvent("wh1", localPlayer) end end addEventHandler ( "onClientGUIClick", root, wh1 )
-
What u need is setPlayerWantedLevel getPlayerWantedLevel
-
It's dayz
-
If it shows up as orange when using the Lua tags on these forums, it means it's server-sided only. If it's red, it's client-side only. If it's blue, you can use it on either client or server. i know but i forgot :c
-
Hello I Have A Chat Script But...... people can spam how can i add anti spam for it? function globalMessage(thePlayer, cmd, ...) local message = table.concat ( { ... }, " " ); local name = getPlayerName(thePlayer); local account = getAccountName ( getPlayerAccount ( thePlayer ) ) if cmd == "global" then if isPlayerMuted ( thePlayer ) then outputChatBox ("You are muted!", thePlayer, 255, 128, 22, true) return end end if isObjectInACLGroup("user." .. account, aclGetGroup("Owner")) then outputChatBox("GLOBAL - [#FF0000"..name.."#FA8258]: #FFFFFF"..message,root, 255, 255, 255, true) return else end local account = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then outputChatBox("GLOBAL - [#0000FF"..name.."#FA8258]: #FFFFFF"..message,root, 255, 255, 255, true) return else end local account = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator")) then outputChatBox("GLOBAL - [#3ADF00"..name.."#FA8258]: #FFFFFF"..message,root, 255, 255, 255, true) return else end local account = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup("user." .. account, aclGetGroup("Moderator")) then outputChatBox("GLOBAL - [#5F04B4"..name.."#FA8258]: #FFFFFF"..message,root, 255, 255, 255, true) return else end local account = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup("user." .. account, aclGetGroup("Supporter")) then outputChatBox("GLOBAL - [#2EFEF7"..name.."#FA8258]: #FFFFFF"..message,root, 255, 255, 255, true) return else outputChatBox("GLOBAL - [#FFFFFF"..name.."#FA8258]: #FFFFFF"..message,root, 255, 255, 255, true) return end end addCommandHandler("global", globalMessage) addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), function() for index,player in pairs(getElementsByType("player")) do bindKey(player,"u", "down", "chatbox", "global") end end) addEventHandler("onPlayerJoin", root,function() bindKey(source, "u", "down", "chatbox", "global") end)
-
@blaawee yeah i just tested it hasObjectPermissionTo didn't work well thanks for telling me
-
choose the one you like -- https://community.multitheftauto.com/in ... ls&id=9683 -- https://community.multitheftauto.com/in ... s&id=11688 -- https://community.multitheftauto.com/ind ... ls&id=2604
-
here you go... IT'S IN CLIENT SIDE! addEventHandler("onClientRender", root, function() dxDrawText(""..getStaffOnDuty(), 449, 333, 921, 402, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false) end ) function getStaffOnDuty() theTableMembersOnline = "" for i, player in ipairs(getElementsByType ( "player" )) do if getElementData(player,"admin") == true then -- my bad :3 theTableMembersOnline = theTableMembersOnline .. ", " .. getPlayerName(player) end end if theTableMembersOnline == "" then return "" else return "Admins Online: " .. theTableMembersOnline end end
-
bot1 = spawnBot ( x + 5, y, z, 0, math.random ( 1, 312 ), 0, 0, -1,math.random ( 333, 339 ), "chasing" )
-
Just Joined This Server... Good Server
-
the problem is that you didn't add the event in client side like addEvent("senhadabase",true) addEventHandler("senhadabase",getRootElement(),YourfunctionName)
-
@tuaos you're awesome thanks!
-
? didn't understand
-
hello i made a script that if some one have CJ skin it draws a rectangle but it's not working idk why code: lp = getLocalPlayer() addEventHandler("onClientRender", root, function() if getElementModel( lp, 0) == true then dxDrawRectangle(0, 0, 1680, 1050, tocolor(0, 0, 0, 255), false) dxDrawText("Please Wait 10 Seconds", 445 + 1, 459 + 1, 1186 + 1, 596 + 1, tocolor(0, 0, 0, 255), 3.00, "bankgothic", "center", "top", true, false, false, true, false) dxDrawText("Please Wait 10 Seconds", 445, 459, 1186, 596, tocolor(254, 255, 254, 255), 3.00, "bankgothic", "center", "top", true, false, false, true, false) end end )
-
i did it it works now thanks
-
well not working ;/
-
hello i made a script that who has data of run and jumps in water die but it's not working code: function killinwater(source) if getElementData(source,"RUN") == true then if isPedInWater (source) then killPed(source) end end end
-
hello i made a script but it's not working the problem is when the attacker has data of "bandit" can't shoot the other who has data of Bandit code : function noshootteam(attacker, target ) if getElementData( attacker,"bandit") == true then if getElementData( target,"bandit") == true then outputChatBox ( "Don't kill your teammates!!!",attacker, 255, 0, 0 ) cancelEvent() end end end addEventHandler ( "onClientPlayerWeaponFire", root, noshootteam )
-
Thanks But I mean the player who has the data of NODM can't shoot players
