Jump to content

gamelaster

Members
  • Posts

    12
  • Joined

  • Last visited

Everything posted by gamelaster

  1. Yay! Played for some time, it works nicely! Also, it works on Linux via Wine out of the box! Great job MTA team and all contributors ?
  2. 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 and respawn pickup. Thx Sorry for my bad english, im slovak and im kid
  3. Thx man, im used this: Im programming on lua only 2 days
  4. 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...
  5. 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")
  6. Ok ok, if im remove if(vehicle) then only type you vehicle has fixed also vehicle is not fixed..
  7. 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..
  8. 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")
  9. Hello guys, im programator, also im bad in english, please, how to create script for checking only on/off status??? Thanx ..
×
×
  • Create New...