Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by iPrestege

  1. bindKey isPedInVehicle showCursor isCursorShowing
  2. -- # Server Side addEventHandler("onVehicleDamage", getRootElement(), function ( ) local Prestege = getVehicleOccupant( source ) if ( Prestege ) then takePlayerMoney ( Prestege,5000 ) end end )
  3. isPedInVehicle bindKey guiSetVisible showCursor
  4. addEventHandler ("onClientGUIClick",button or root or anything able to use,function,if u use a button add false here)
  5. onClientGUIClick triggerServerEvent
  6. giveWeapon function server side only any way try this server side : function consoleGive ( thePlayer ) if getPlayerMoney ( thePlayer ) < tonumber( 6000 ) then outputChatBox ("You do not have enough money!") return end giveWeapon ( thePlayer, 35, 1, true ) takePlayerMoney ( thePlayer,6000 ) end addCommandHandler ( "rpg", consoleGive )
  7. Make it easy try this server side : function SwitchEngine( playerSource ) local theVehicle = getPedOccupiedVehicle ( playerSource ) if theVehicle and getVehicleController ( theVehicle ) == playerSource then local state = getVehicleEngineState ( theVehicle ) setVehicleEngineState ( theVehicle, not state ) end end function BindKeys ( player ) if ( eventName == "onVehicleStartEnter" ) then bindKey ( player,"x","down",SwitchEngine ) else unbindKey ( player,"x","down",SwitchEngine ) end end addEventHandler ( "onVehicleStartEnter", root, BindKeys ) addEventHandler ( "onVehicleStartExit", root, BindKeys ) Not tested yet .
  8. Hmm.. I Think you are wrong You know why ? Because you said the file won't loaded when the player have a older version i remember i try to use the cache on my script the file doesn't load in my device but in my friend device the file has been loaded .
  9. كيف تقول كذا المفروض تتكلم بكل وضوح الحين وش يعرفنا عرفت تسوية ولالا ؟
  10. No there's some elements not defined like player ..etc and you have to check the player money because if you don't check the player money will be a negative money .
  11. عناد عطآكـ كود شبة كامل تقدر تكمل منة !؟
  12. -- # Server Side function consoleGive ( thePlayer ) if getPlayerMoney ( thePlayer ) >= 6000 then takePlayerMoney ( thePlayer,6000 ) giveWeapon ( thePlayer, 35, 1, true ) else outputChatBox(" You don't have money",thePlayer) end end addCommandHandler ( "rpg", consoleGive ) Not tested yet .
  13. As far as i know this will work if you have this 1.3.1 r4909 version and onwards and i think if you have older version maybe the file will loaded .
  14. الصراحة شيء عجيب .. موضوع قديم و الناس باقي ترد عليه؟
  15. اممم نفرض مثلا مادمج المود مع الفري روم ؟
  16. امممم يعني قصدهـ تيتي كذآ : function CreateMission ( ) -- You're Code end و تستخدمهـ وين ماتبية يشتغل و يصير ..
  17. ريستارت للمود؟مع تآيمر؟
  18. The tools works fine it's you're problem now find what's the wrong .
  19. https://community.multitheftauto.com/index.php?p=resources&s=details&id=7097 Stolen from 'BaseMode' Resource . https://community.multitheftauto.com/index.php?p=resources&s=details&id=7077 Delete my resource . DONE
×
×
  • Create New...