Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by iPrestege

  1. -- # Client Side : function CheatMode ( ) local Enable = not isWorldSpecialPropertyEnabled( 'hovercars' ) setWorldSpecialPropertyEnabled( 'hovercars',Enable ) end addCommandHandler( 'water', CheatMode ) More easier !
  2. ^ مايقدر عن نفسة ي ضآوي ..
  3. triggerClientEvent ( hitElement,"text", hitElement, "area" )
  4. The text will be shown for everyone .
  5. I don't know you have to set it for the player how enter the area i mean 'triggerClientEvent' . @ Solid : Already done .
  6. setVehicleLocked setElementFrozen Please use the wiki next time : https://wiki.multitheftauto.com/wiki/Main_Page You can find the client and server functions on the left good luck with it.
  7. dxDrawText("~Base~",sw/15.2, sh/1.499, sw,sh,tocolor(255,255,255,255),2.0, "default-bold", "left", "top", false, false, false,true) dxDrawText("Area 51",sw/15.2, sh/1.399, sw,sh,tocolor(0,255,0,255),2.0, "default-bold", "left", "top", false, false, false,true) You can use a hex color code's .
  8. addCommandHandler("push", function(p, c, t) local pushPlayer = findPlayer(t) if pushPlayer then local pushVehicle = getPedOccupiedVehicle(pushPlayer) if pushVehicle then local speedX, speedY, speedZ = getElementVelocity(pushVehicle) setElementVelocity(pushVehicle, 0, 0,0.2) outputChatBox(" "..getPlayerName(p).." pushes "..getPlayerName(pushPlayer).." up!", root, 255, 0, 0) end end end ) function findPlayer(name) local name = name:lower() for i, p in ipairs(getElementsByType("player")) do local fullname = getPlayerName(p):lower() if string.find(fullname:gsub("#%x%x%x%x%x%x", ""), name, 1, true) then return p end end return false end
  9. Use client render event actually doing it .
  10. What's the point of use enter - exit vehicle event ?
  11. setWaterColor With : onResourceStart Event .
  12. ^ مايقبل الـ cancelEvent > الحدث
  13. اذا تشغل المود ثانية وش تستفيد ؟ راحت الاشياء اللي كنت تسويها من الاصل .. ذذذذذذذ
  14. -- # Client Side : addEventHandler('onClientPedDamage',root, function ( ) for _,ped in ipairs ( getElementsByType ( 'ped',resourceRoot ) ) do if source == ped then cancelEvent ( ) end end end ) Remember it's a client side .
  15. addEventHandler("onResourceStart", resourceRoot, function() local ped = createPed(106, 2479.3000488281, -1653.1999511719, 13.5, 90, 0, 0) setTimer ( function ( ) if isElement ( ped ) then setElementFrozen(ped, true) setPedAnimation(ped, "GANGS", "smkcig_prtl", -1, true, true, false) end end,100,1 ) end ) Use a timer because the ped maybe not created yet try this and tell me the results .
  16. Positions = { [1] = { x, y, z }; [2] = { x, y, z }; [3] = { x, y, z }; [4] = { x, y, z }; [5] = { x, y, z }; } addEventHandler("onPlayerJoin",root, function ( ) local randomFunction = math.random ( #Positions ) local getRandomPosition = Positions [ randomFunction ] spawnPlayer ( source, getRandomPosition[1], getRandomPosition[2],getRandomPosition[3]) end ) انت تبي x,y,z > هذي القيم مآيهم عدد اللي بالجدول ( =
×
×
  • Create New...