Jump to content

justn

Members
  • Posts

    525
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by justn

  1. Nice map ! Looks enjoyable ( My Opinion )
  2. Click HERE and create the post in your language
  3. Use these exported functions.. getBankAccountBalance setBankAccountBalance
  4. This script needs alot of stuff to change
  5. setElementInterior setElementDimension
  6. You haven't defined the account
  7. Hey, i'm working on a fuel system but it doesn't work , can someone fix please ? thanks.. No errors in debugscript fuelNumber = 100 for i, vehicle in ipairs(getElementsByType("vehicle")) do setElementData(vehicle,"fuel",tonumber(fuelNumber)) end function decreaseFuel(seat, door) setTimer(function() if ( seat == 0 ) and ( door == 0 ) then local veh = getPedOccupiedVehicle(localPlayer) if ( veh ) then setElementData(veh,"fuel",tonumber(fuelNumber)-1) addEventHandler("onClientRender",getRootElement(),onFuelRender) end end end,1000,0) end addEventHandler("onClientVehicleEnter",getRootElement(),decreaseFuel) function onFuelRender() if isPedInVehicle ( localPlayer ) then dxDrawText("Vehicle Fuel: "..tonumber(fuelNumber).."%", 312, 718, 561, 742, tocolor(255, 255, 255, 255), 1.50, "default-bold", "left", "top", false, false, true, false, false) end end
  8. justn

    onPlayerLogin

    Huh? What exactly are you trying to do ?
  9. Try this. -- X ( Position X ), Y ( Position Y ), Z ( Position Z ), rotX ( rotation X ), rotY ( rotation Y ), rotZ ( rotation Z) local gate = createObject( Object ID, x, y, z, rotX, rotY, rotZ ) addCommandHandler("open", function() moveObject(gate, 2500, x,y,z) -- Moves the object to the position x,y,z end ) addCommandHandler("close", function() moveObject(gate, 2500, x,y,z) -- Close the gate ( same x,y,z u used to create the gate ) end )
  10. I know, i mean you should be able to detect which server your friends are in. and you can follow them and stuff, this in my opinion, is recommended, since sometimes your friends change their nick ( which means when u search for their old nick in the search bar, you wont find them ) and mostly not everyone has skype.
  11. 600MB of cars and different stuff ? Of course they'll lag, change your mta host to a more paid one. or delete some stuff in your server. ( This is what i suggest )
  12. Are you sure that the ports 22003 and 22126 are port forwarded?
  13. justn

    Check Water

    [url=https://wiki.multitheftauto.com/wiki/IsElementInWater]https://wiki.multitheftauto.com/wiki/IsElementInWater[/url]
  14. justn

    [HELP]Problem

    getVehicleHandling returns a table of the current vehicle handling data. setVehicleHandling is used to change the handling data of a vehicle. and getOriginalHandling returns a table of the original vehicle handling. Learn more at https://wiki.multitheftauto.com/wiki/Main_Page
  15. I agree with the friends menu ! Since it's quite hard to find most of your friends in MTA.
  16. justn

    help pliz

    addEventHandler("onPlayerJoin",getRootElement(), function () playerAccountName = getPlayerAccount(source) if isGuestAccount(playerAccountName) then setElementData(source, "level", 1) setElementData(source, "exp", 0) end end)
  17. justn

    help pliz

    addEventHandler("onPlayerJoin", getRootElement(), function (player) if getAccountName(getPlayerAccount(player) == "guest" ) then setElementData(player, "level", 1) setElementData(player, "exp", 0) end end)
  18. Lol, I said what was my problem on my post though Anyways, we don't want to cause a cat fight. Anyways, you can check if the player has the amount of required criminal actions using this if ( criminal2 [3] ) then setElementData(source,"Occupation", criminal2[2])
  19. WRONG way for asking for help __ What exactly are you trying to do ?
  20. It says 'number' '0' 'None'
  21. It just outputs 'number'
  22. Same error, but it's on line 69 now .. and it just outputs to the chat : 0
  23. local radios = { [1] = {"None","None"}, [2] = {"http://mp3uplink.duplexfx.com:8054/listen.pls","West Coast Rap"}, [3] = {"http://somafm.com/dubstep.pls","Dubstep"}, [4] = {"http://www.181.fm/winamp.pls?station=181-power&style=mp3&description=Power%20181%20(Top%2040)&file=181-power.pls","Power 181"}, [5] = {"http://193.34.51.25/listen.pls","rauteMusik."}, [6] = {"http://212.45.104.34:8042/listen.pls","defjay"} } Tried that and the error was ERROR: radio\client.lua:72: attempt to index field '?' (a nil value) __ Also tried this table below and the error was the same thing .. local radios = { {1,"None","None"}, {2,"http://mp3uplink.duplexfx.com:8054/listen.pls","West Coast Rap"}, {3,"http://somafm.com/dubstep.pls","Dubstep"}, {4,"http://www.181.fm/winamp.pls?station=181-power&style=mp3&description=Power%20181%20(Top%2040)&file=181-power.pls","Power 181"}, {5,"http://193.34.51.25/listen.pls","rauteMusik."}, {6,"http://212.45.104.34:8042/listen.pls","defjay"} }
×
×
  • Create New...