-
Posts
1,239 -
Joined
-
Last visited
Everything posted by -.Paradox.-
-
Not working too, also I reset my account xp and I change the element data and still nothing
-
No, nothing in debug, here is what i tried addEventHandler ( "onPlayerJoin", root, function ( ) setElementData ( source, "Rankicons",":Class\\Rank\\rank_0.png" ) end ) addEventHandler ( "onPlayerLogin", root, function ( _, acc ) local accName = getAccountName ( acc ) local LV = getAccountData(acc, "LV") if (LV >= 0) and (LV <=22) then setElementData ( source, "Rankicons", ":Class\\Rank\\rank_"..LV..".png") end if(LV >= 23) and (LV <= 25) then setElementData(source, "Rankicons", ":Class\\Rank\\rank_23.png") end if(LV >= 26) and (LV <= 30) then setElementData(source, "Rankicons", ":Class\\Rank\\rank_24.png") end if(LV >= 31) and (LV <= 33) then setElementData(source, "Rankicons", ":Class\\Rank\\rank_25.png") end if(LV >= 34) and (LV <= 37) then setElementData(source, "Rankicons", ":Class\\Rank\\rank_26.png") end if(LV >= 38) and (LV <= 40) then setElementData(source, "Rankicons", ":Class\\Rank\\rank_27.png") end if(LV >= 41) and (LV <= 45) then setElementData(source, "Rankicons", ":Class\\Rank\\rank_28.png") end if(LV >= 46) and (LV <= 49) then setElementData(source, "Rankicons", ":Class\\Rank\\rank_29.png") end if(LV == 50) then setElementData(source, "Rankicons", ":Class\\Rank\\rank_30.png") else setElementData ( source, "Rankicons", ":Class\\Rank\\rank_0.png" ) end end)
-
Try this radararea2 = createRadarArea( 110.91990, 1800.89435, 200, 145, 255, 255, 255, 225 ) createBlip(279.40317, 1831.25439, 7.72656,61) marker2 = createMarker(298.98865, 1815.90613, 3.71094,"cylinder",2,0,0,255,255) addCommandHandler("buyarea51", function () local gangName = exports.gang_system:getPlayerGang(source) if(isElementWithinMarker(source, marker2))and gangName and (getPlayerMoney (source) >= tonumber(1000000)) then takePlayerMoney (source, tonumber (1000000)) local color = exports.gang_system:getGangColor(gangName) setRadarAreaColor(radararea, color[1], color[2], color[2], 255) outputChatBox("#FFF000[bASE] #00FFFFYour gang buyed a base #00FF00 Area 51 !", source, 0, 0, 0, true) else outputChatBox("#FFF000[bASE] You arent on the checkpoint !", source, 0, 0, 0, true) end end )
-
radararea2 = createRadarArea( 110.91990, 1800.89435, 200, 145, 255, 255, 255, 225 ) createBlip(279.40317, 1831.25439, 7.72656,61) marker2 = createMarker(298.98865, 1815.90613, 3.71094,"cylinder",2,0,0,255,255) addCommandHandler("buyarea51", function(player) local gangName = exports.gang_system:getPlayerGang(player) if(isElementWithinMarker(thePlayer,marker2))then if gangName then local money = getPlayerMoney(player) if (money >= 1000000)then takePlayerMoney(player, 1000000) local color = exports.gang_system:getGangColor(gangName) setRadarAreaColor(radararea, color[1], color[2], color[2], 255) outputChatBox("#FFF000[bASE] #00FFFFYour gang buyed a base #00FF00 Area 51 !", player, 0, 0, 0, true) else outputChatBox("#FFF000[bASE] You arent on the checkpoint !") end end end end)
-
Idk,By the way i used /crun getPedOxygenLevel(localPlayer) and it output that my max oxygen is 250
-
Still the same i tried both codes
-
Still the same anyway my max oxygen level is 250 I guess it would help
-
It's working thanks, but i want to make that fade screen flash
-
So the script is okay? because it only attach the sigarette to the mouth of cj
-
Hello guys, i made this script, it suppose to add a sigarette into player mouth and fade camera and set animation to smoking and toggle control state to false, and after 9 seconds the sigarette must disappear and the player must stop animation and all control state back normal but it don't work help please and thanks. function sigarette ( thePlayer, commandName ) local x, y, z = getElementPosition ( thePlayer ) local sigarette = createObject ( 1485, 0, 0, 0 ) attachElements ( sigarette, thePlayer, 0.05, 0, 0.7, 0, 45, 118 ) local faded = false if faded then fadeCamera ( player, true ) else fadeCamera ( player, false, 1, 250, 0, 0 ) end faded = not faded toggleControl ( thePlayer, "jump", false ) toggleControl ( thePlayer, "sprint", false ) toggleControl ( thePlayer, "walk", false ) toggleControl ( thePlayer, "forwads", false ) toggleControl ( thePlayer, "backwards", false ) toggleControl ( thePlayer, "left", false ) toggleControl ( thePlayer, "right", false ) toggleControl ( thePlayer, "aim_weapon", false ) toggleControl ( thePlayer, "fire", false ) toggleControl ( thePlayer, "enter_exit", false ) setPedAnimation ( source, "SMOKING", "M_smkstnd_loop") end addCommandHandler ( "smoke", sigarette ) setTimer( function () stopObject ( sigarette ) detachElements ( sigarette ) toggleControl ( thePlayer, "jump", true ) toggleControl ( thePlayer, "sprint", true ) toggleControl ( thePlayer, "walk", true ) toggleControl ( thePlayer, "forwads", true ) toggleControl ( thePlayer, "backwards", true ) toggleControl ( thePlayer, "left", true ) toggleControl ( thePlayer, "right", true ) toggleControl ( thePlayer, "aim_weapon", true ) toggleControl ( thePlayer, "fire", true ) toggleControl ( thePlayer, "enter_exit", true ) end , 9000, 1)
-
Nope nothing in console too
-
How? And what I must use?
-
Hello, is there a function that shake the camera like in drunk mode? Thanks
-
Not working but now just showing a black rectangle
-
So is there anyway to make it work? please help guys
-
I can't understand, should i use getElementData?
-
But where i should use the syntax to retrieve filenames and level?
-
Nothing happened
-
Still the same problem
-
Hello guys, i made an oxygen level bar but not working, here is my code addEventHandler("onClientRender", root, function() local oxygen = math.floor(getPedOxygenLevel ( getLocalPlayer() )) if oxygen < 1000 then oxygen = oxygen / 2 end dxDrawRectangle(900, 94, 266, 20, tocolor(0, 0, 0, 255), true) dxDrawRectangle(901, 95, 264*(oxygen/10), 18, tocolor(8, 154, 246, 255), true) end ) As you can see the oxygen is the sky-blue color bar and thats the bug
-
How to create a wood door same in the video? help please