-
Posts
1,862 -
Joined
-
Days Won
8
Everything posted by Rockyz
-
function Gift (plr,_,who,text) if who and isElement (who) and text then local txtt = table.concat ( { text }, " " ) outputChatBox("Admin "..string.gsub(getPlayerName (plr),"#%x%x%x%x%x%x", "").." --> "..who.." [Reason: "..txtt.."]", root, 255, 0, 0, true) end end addCommandHandler("gift", Gift)
-
function Gift (plr,_,who,text) if who and isElement (who) and text then local txtt = table.concat ( { text }, " " ) outputChatBox("Admin "..getPlayerName (plr):gsub("#%x%x%x%x%x%x", "").." --> "..who.." [Reason: "..txtt.."]", root, 255, 0, 0, true) end end addCommandHandler("gift", Gift)
-
function Gift (plr,_,who,text) if who and isElement (who) and text then local txtt = table.concat ( { text }, " " ) outputChatBox("Admin "..plr:gsub("#%x%x%x%x%x%x", "").." --> "..who.." [Reason: "..txtt.."]", root, 255, 0, 0, true) end end addCommandHandler("gift", Gift)
-
دبولة ولا تبولة تبولة ولا تابل تابل ولا تابع تابع ولا شاهد شاهد ولا شوف
-
element createElement ( string elementType, [ string elementID = nil ] ) you need to use createObject if You Want To Attach like this ex : function attachU ( plr, commandName ) local x, y, z = getElementPosition ( plr ) local aleron1 = engineLoadDFF ( "test.dff", 411 ) local aleron = createObject ( 980, x, y, z + 3 ) attachElements ( aleron, plr, 0, 0, 5 ) end addCommandHandler ( "aleron", attachU )
-
Skins = { { "Pilot", 61 }, } GUIEditor = { button = {}, window = {}, memo = {} } addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) GUIEditor.window[1] = guiCreateWindow(0.26, 0.09, 0.47, 0.83, "Pilot Job Panel", true) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.memo[1] = guiCreateMemo(0.02, 0.06, 0.95, 0.62, "", true, GUIEditor.window[1]) gridlist22 = guiCreateGridList(0.02, 0.70, 0.95, 0.18, true, GUIEditor.window[1]) guiGridListAddColumn ( gridlist22, "Skin Name", 0.5 ) GUIEditor.button[1] = guiCreateButton(0.03, 0.91, 0.39, 0.07, "Choose", true, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF00FF00") GUIEditor.button[2] = guiCreateButton(0.59, 0.91, 0.39, 0.07, "Exit", true, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFF0000") guiSetVisible ( GUIEditor.window[1], false ) addRows ( ) end ) createBlip (1958.10144,-2181.56982,13.54688,56) TJPM = createMarker ( 1958.10144,-2181.56982,11.54688,"cylinder",2,255,255,0,255) TJPP = createPed ( 61,1955.10144,-2181.56982,13.54688) setElementRotation ( TJPP,0,0,270) setPedFrozen ( TJPP, true ) addEventHandler ( "onClientPedDamage", getRootElement(), function () if source == TJPP then cancelEvent () end end ) addEventHandler ( "onClientMarkerHit", getRootElement(), function (hit) if source == TJPM then if getElementType (hit) == "player" then guiSetVisible (GUIEditor.window[1],true) showCursor (true) end end end ) addEventHandler ( "onClientGUIClick",GUIEditor.button[2], function () guiSetVisible (GUIEditor.window[1],false) showCursor (false) end ) function addRows ( ) for k,v in ipairs ( Skins ) do local b123 = guiGridListAddRow ( gridlist22 ) guiGridListSetItemText( gridlist22, b123, 1, v[1], false, false ) guiGridListSetItemData( gridlist22, b123, 1, tonumber ( v[2] ) ) end end
-
من وين جايب الارقمنت bool guiGridListSetItemData ( element gridList, int rowIndex, int columnIndex, var data )
-
Skins = { -- { "Text", ID }, { "Pilot", 61 } } for k, v in ipairs ( Skins ) do local b123 = guiGridListAddRow ( gridlist22 ) guiGridListSetItemText ( gridlist22, b123, 1, v[1], false, false ) guiGridListSetItemData ( gridlist22, b123, 1, tonumber ( v[2] ) ) end
-
مود حلو واصل !! بالتوفيق ...
-
i dont understand ?? your problem
-
اذا السباون في المنطقة المحمية ف هذا شي اكيد
-
تقصد كودي ؟ لان كودي هو الي اذا طلعت من المنطقة يرجع السيارة
-
ناسخ اكواد الفري روم ؟
-
addEventHandler ("onResourceStart", getRootElement(), function() setTimer (moneyZoneTimerFunction, 2500, 0) local allGreenzones = getElementsByType ("radararea") for i,v in ipairs (allGreenzones) do local r,g,b,a = getRadarAreaColor (v) if (r == 0) and (g == 255) and (b == 0) and (a == 127) then local x,y = getElementPosition (v) local sx,sy = getRadarAreaSize (v) local col = createColCuboid (x,y, -50, sx,sy, 7500) setElementID (col, "greenzoneColshape") end end end) addEventHandler ("onColShapeHit", getRootElement(), function(hitElement, matchingDimension) if (getElementType (hitElement) == "player") and (getElementID (source) == "greenzoneColshape") then outputChatBox ("", hitElement, 255, 0, 0, false) if (isPedInVehicle(hitElement)) then setElementData (hitElement, "getTheVehh", getVehicleModelFromName (getVehicleName (getPedOccupiedVehicle(hitElement)))) destroyElement (getPedOccupiedVehicle(hitElement)) end toggleControl (hitElement, "fire", false) toggleControl (hitElement, "next_weapon", false) toggleControl (hitElement, "previous_weapon", false) showPlayerHudComponent (hitElement, "car", false) toggleControl (hitElement, "sprint", true) toggleControl (hitElement, "aim_weapon", false) toggleControl (hitElement, "vehicle_fire", false) toggleControl (hitElement, "vehicle", false) showPlayerHudComponent (hitElement, "ammo", false) showPlayerHudComponent (hitElement, "weapon", false) triggerClientEvent (hitElement, "enableGodMode", hitElement) end if (source == moneyZoneCol) and (getElementType (hitElement) == "vehicle") then setElementVelocity (hitElement, 0, 0, 0) setElementPosition (hitElement, 2018.33, 1534.77, 12.37) setVehicleRotation (hitElement, 0,0,270) if (getVehicleOccupant (hitElement, 0)) then outputChatBox ("You can't enter the moneyzone with your car!", getVehicleOccupant (hitElement, 0), 255, 0, 0, false) end end end) addEventHandler ("onColShapeLeave", getRootElement(), function(leaveElement, matchingDimension) if (getElementType (leaveElement) == "player") and (getElementID (source) == "greenzoneColshape") then outputChatBox ("", leaveElement, 255, 0, 0, false) local yrVEH = getElementData (leaveElement, "getTheVehh") if (yrVEH) then local x, y, z = getElementPosition (leaveElement) local rx, ry, rz = getElementRotation (leaveElement) local hveh = createVehicle (tonumber (yrVEH), x + 3, y + 3, z, rx, ry, rz) warpPedIntoVehicle (leaveElement, hveh) removeElementData (leaveElement, "getTheVehh") end toggleControl (leaveElement, "fire", true) toggleControl (leaveElement, "next_weapon", true) toggleControl (leaveElement, "previous_weapon", true) toggleControl (leaveElement, "sprint", true) toggleControl (leaveElement, "aim_weapon", true) toggleControl (leaveElement, "vehicle_fire", true) showPlayerHudComponent (leaveElement, "ammo", true) showPlayerHudComponent (leaveElement, "weapon", true) triggerClientEvent (leaveElement, "disableGodMode", leaveElement) end end) --money zone col moneyZoneCol = createColCuboid (1993.12, 1519.14, -100, 17.43, 54.24, 117) --stop moneyzone col function moneyZoneTimerFunction () local allPlayersInCol = getElementsWithinColShape (moneyZoneCol, "player") for i,v in ipairs (allPlayersInCol) do givePlayerMoney (v, 5) end end -- marker bij hospital createMarker (1607.36, 1814.24, -10, "cylinder", 24, 0, 255, 0, 190, getRootElement())
-
Server .. : addEventHandler ("onResourceStart", getRootElement(), function() setTimer (moneyZoneTimerFunction, 2500, 0) local allGreenzones = getElementsByType ("radararea") for i,v in ipairs (allGreenzones) do local r,g,b,a = getRadarAreaColor (v) if (r == 0) and (g == 255) and (b == 0) and (a == 127) then local x,y = getElementPosition (v) local sx,sy = getRadarAreaSize (v) local col = createColCuboid (x,y, -50, sx,sy, 7500) setElementID (col, "greenzoneColshape") end end end) addEventHandler ("onColShapeHit", getRootElement(), function(hitElement, matchingDimension) if (getElementType (hitElement) == "player") and (getElementID (source) == "greenzoneColshape") then outputChatBox ("", hitElement, 255, 0, 0, false) if (isPedInVehicle(hitElement)) then setElementData (hitElement, "getTheVehh", getVehicleModelFromName (getVehicleName (getPedOccupiedVehicle(hitElement)))) destroyElement (getPedOccupiedVehicle(hitElement)) end toggleControl (hitElement, "fire", false) toggleControl (hitElement, "next_weapon", false) toggleControl (hitElement, "previous_weapon", false) showPlayerHudComponent (hitElement, "car", false) toggleControl (hitElement, "sprint", true) toggleControl (hitElement, "aim_weapon", false) toggleControl (hitElement, "vehicle_fire", false) toggleControl (hitElement, "vehicle", false) showPlayerHudComponent (hitElement, "ammo", false) showPlayerHudComponent (hitElement, "weapon", false) triggerClientEvent (hitElement, "enableGodMode", hitElement) end if (source == moneyZoneCol) and (getElementType (hitElement) == "vehicle") then setElementVelocity (hitElement, 0, 0, 0) setElementPosition (hitElement, 2018.33, 1534.77, 12.37) setVehicleRotation (hitElement, 0,0,270) if (getVehicleOccupant (hitElement, 0)) then outputChatBox ("You can't enter the moneyzone with your car!", getVehicleOccupant (hitElement, 0), 255, 0, 0, false) end end end) addEventHandler ("onColShapeLeave", getRootElement(), function(leaveElement, matchingDimension) if (getElementType (leaveElement) == "player") and (getElementID (source) == "greenzoneColshape") then outputChatBox ("", leaveElement, 255, 0, 0, false) local yrVEH = getElementData (leaveElement, "getTheVehh") if (yrVEH) then local x, y, z = getElementPosition (leaveElement) local rx, ry, rz = getElementRotation (leaveElement) createVehicle (tonumber (yrVEH), x, y, z, rx, ry, rz) removeElementData ( leaveElement, "getTheVehh" ) end toggleControl (leaveElement, "fire", true) toggleControl (leaveElement, "next_weapon", true) toggleControl (leaveElement, "previous_weapon", true) toggleControl (leaveElement, "sprint", true) toggleControl (leaveElement, "aim_weapon", true) toggleControl (leaveElement, "vehicle_fire", true) showPlayerHudComponent (leaveElement, "ammo", true) showPlayerHudComponent (leaveElement, "weapon", true) triggerClientEvent (leaveElement, "disableGodMode", leaveElement) end end) --money zone col moneyZoneCol = createColCuboid (1993.12, 1519.14, -100, 17.43, 54.24, 117) --stop moneyzone col function moneyZoneTimerFunction () local allPlayersInCol = getElementsWithinColShape (moneyZoneCol, "player") for i,v in ipairs (allPlayersInCol) do givePlayerMoney (v, 5) end end -- marker bij hospital createMarker (1607.36, 1814.24, -10, "cylinder", 24, 0, 255, 0, 190, getRootElement())
-
لا لا تابل يحط مليون سهم
-
idont understand what are you trying to do ?
-
addEventHandler ( "onClientKey", root, function ( button, press ) if button == "r" and press then cancelEvent ( ) end end )
-
plr ???????? if hitElement == localPlayer then
-
الحين كل ما واحد يدخل بيسوي لوب