Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About gamelaster

  • Rank
  1. Hi, im newbie on LUA, im on lua programing only 2 days and in the wiki is small list of the creating PickUp and GUI. This is my code: createPickup ( -3530, -201, 10, 3, 1277 ) function pickupUse ( thePlayer ) end addEventHandler ( "onPickupUse", getRootElement(), pickupUse ) How to create this: If im in the pickup, show GUI with list of vehicles and buttons Spawn and Cancel.(If im pickup, im freezed) If im double clicked from the vehicle name or selected vehicle and clicked to spawn, spawn vehicle in the position and unfreeze me and respawn pickup. If im click cancel, im unfreezed
  2. Thx man, im used this: Im programming on lua only 2 days
  3. Hi, code: ja = getLocalPlayer() function hud ( player , command ) showPlayerHudComponent ( ja, "all", false ) outputChatBox ( "HUD bolo uspesne vypnute", ja, 0, 255, 0 ) end addCommandHandler ( "hud", hud ) If im type /hud, send to chat HUD bolo uspesne vypnute , also nothind unhidet...
  4. Ok fixed. This is code for newbies: me = getLocalPlayer() function fixing ( ) local vehicle = getPedOccupiedVehicle ( me ) fixVehicle ( vehicle ) outputChatBox ( "Your vehicle was fixed!", me, 0, 255, 0 ) end addCommandHandler("fixfix",fixing) bindKey("z","down","fixfix")
  5. Ok ok, if im remove if(vehicle) then only type you vehicle has fixed also vehicle is not fixed..
  6. not helped, in the all types is not type you vehicle was fixed.... Please, test move this function to command and test. Also, im goto to console, and type fix fix. Not typing or fixing..
  7. Hello, im pressing Z key to fix, also not function . Code: function fixing ( player ) local vehicle = getPlayerOccupiedVehicle ( player ) if (vehicle) then fixVehicle ( vehicle ) outputChatBox ( "Your vehicle was fixed!", player, 0, 255, 0 ) end end addCommandHandler("fixfix",fixing) bindKey("z","down","fixfix")
  8. Hello guys, im programator, also im bad in english, please, how to create script for checking only on/off status??? Thanx ..
  • Create New...