Jump to content

mint3d

Members
  • Posts

    425
  • Joined

  • Last visited

Everything posted by mint3d

  1. Nah I have 2 buttons Vehicle Create and Vehicle Destroy.. One Creates it other Destroys it..
  2. I don't know if you can help me I am making a VIP System and ye I am gonna use that code ^ I haven't tested it but I was thinking like because your code doesn't destroy it how can I make it destroy it? This is my client side.. function VIPCVehicle () triggerServerEvent ("VIPCVehicle", localplayer) end addEventHandler("onClientGUIClick", GUIEditor.button[3], VIPCVehicle, false) function VIPDVehicle () triggerServerEvent ("VIPDVehicle", localplayer) end addEventHandler("onClientGUIClick", GUIEditor.button[4], VIPDVehicle, false)
  3. It didn't work... I could click VIP Vehicle then click it again and 2 spawned.. I want it to destroy it if they click VIP Vehicle so only one can spawn at a time for each player..
  4. Ok so I am making a VIP system but I need help how can I make it check to see if the player already has a vip vehicle spawned before spawning another one? function vehiclecar ( ) if exports.vip_system:isPlayerDonator(source) then x,y,z = getElementPosition ( source ) createVehicle ( 411, x + 3, y, z + 1 ) outputChatBox("[VIP]Vehicle Created",source,255,255,0,false) end end addEvent( "vehiclecar", true ) addEventHandler( "vehiclecar", getRootElement(),vehiclecar )
  5. What are the errors? /debugscript 3
  6. mint3d

    Big Problem

    Sorry for double post... Spajk Thanks dude yours worked.
  7. mint3d

    Big Problem

    Still doesn't work. Scoreboard doesn't go up levels. Only when I login it changes. @Et-Win
  8. mint3d

    Big Problem

    I can't add a name everytime I try add it. it says something about brackets near then the name I put..
  9. mint3d

    Big Problem

    It has nothing to do with that.. I only want the scoreboard to change.. It's simply the scoreboard that's not updating..
  10. mint3d

    Big Problem

    It didn't work.. I got up a level and it stayed the same on the scoreboard.. After that I reconnected and it put my level up.. EDIT: what is this? "onPlayerChangeLevel" never heard of it in my life...
  11. mint3d

    Big Problem

    Can you help me with a timer? I don't know because I never gave the function a name..
  12. New to scripting.. but try this.. function () local vehicle = getPedOccupiedVehicle( localPlayer ) if vehicle == 531 then if vehicle and getVehicleOccupant( vehicle, 0 ) == localPlayer and getVehicleEngineState( vehicle ) == true and getElementSpeed( vehicle ) > 1 then guiProgressBarSetProgress(progressBar , +1) else outputChatBox ("progressbar not found!") end end end )
  13. mint3d

    Big Problem

    Ok so the level on the scoreboard is only updating when you reconnect.. can someone help me? exports.scoreboard:addScoreboardColumn('Level') addEventHandler("onPlayerLogin",root, function () local account = getPlayerAccount(source) local myExp = exports.exp_system:getAccountLevel ( account ) if isGuestAccount(account) then return end local Level = exports.exp_system:getAccountLevel (account,"Level") if Level then setElementData(source, "Level", tostring(Level)) else setElementData(source,"Level",0) end end)
  14. What modeling tools could I use?
  15. Yes but it removed the whole fence I only want to remove the 2 gate type bits..
  16. Try this.. addEventHandler ( "onPlayerSpawn", root, function () setPlayerHudComponentVisible ( source, "ammo", false ) -- Hide the ammo displays for the newly joined player setPlayerHudComponentVisible ( source, "weapon", false ) -- Hide the weapon displays for the newly joined player setPlayerHudComponentVisible ( source, "clock", false ) -- Hide the clock displays for the newly joined player setPlayerHudComponentVisible ( source, "money", false ) -- Hide the money displays for the newly joined player setPlayerHudComponentVisible ( source, "wanted", false ) -- Hide the wanted displays for the newly joined player end )
  17. Try this.. addEventHandler ( "onPlayerJoin", root, function () setPlayerHudComponentVisible ( source, "ammo", false ) -- Hide the ammo displays for the newly joined player setPlayerHudComponentVisible ( source, "weapon", false ) -- Hide the weapon displays for the newly joined player setPlayerHudComponentVisible ( source, "clock", false ) -- Hide the clock displays for the newly joined player setPlayerHudComponentVisible ( source, "money", false ) -- Hide the money displays for the newly joined player setPlayerHudComponentVisible ( source, "wanted", false ) -- Hide the wanted displays for the newly joined player end )
  18. Ok so I was wondering if there is a way to remove the gates at area 51... or area 69 whatever you want to call it.. Does anyone know how? or know any software I can use to edit it and remove them myself.. It will be appreciated.
  19. mint3d

    Play Time Help

    Didn't work at all got errors saying line 25 Bad argument @ 'addEventHandler' [Expected function at argument 3, got nil] line 26 Bad argument @ 'addEventHandler' [Expected function at argument 3, got nil] line 56 Bad argument @ 'addEventHandler' [Expected function at argument 3, got nil] line 57 Bad argument @ 'addEventHandler' [Expected function at argument 3, got nil] line 68 Bad argument @ 'addEventHandler' [Expected function at argument 3, got nil]
  20. Ok so I got this code it's either not saving the playtime or its not loading it when a player joins please help me out.. exports.scoreboard:addScoreboardColumn('Online Time') local t = { } function checkValues( source,arg1,arg2) if (arg2 >= 60) then t[ source ][ 'min' ] = tonumber( t[ source ][ 'min' ] or 0 ) + 1 t[ source ][ 'sec' ] = 0 end if (arg1 >= 60) then t[ source ][ 'min' ] = 0 t[ source ][ 'hour' ] = tonumber( t[ source ][ 'hour' ] or 0 ) + 1 end return arg1, arg2 end setTimer( function( ) for _, v in pairs( getElementsByType( "player" ) ) do if (not t[ v ]) then t[ v ] = { ["hour"] = 0, ["min"] = 0, ["sec"] = 0 } end t[ v ][ 'sec' ] = tonumber( t[ v ][ 'sec' ] or 0 ) + 1 local min,sec = checkValues ( v, t[ v ][ 'min' ] or 0, t[ v ][ 'sec' ] or 0 ) local hour = tonumber( t[ v ][ 'hour' ] or 0 ) setElementData( v, "Online Time", tostring( hour )..':'..tostring( min )..':'..tostring( sec ) ) end end, 1000, 0 ) function onPlayerQuit ( ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) and not isGuestAccount ( playeraccount ) then local sValue = getElementData( source,'Online Time' ) setAccountData ( playeraccount, "Online Time", tostring(sValue) ) end t[ source ] = nil end function onPlayerLogin (_, playeraccount ) if ( playeraccount ) then local time = getAccountData ( playeraccount, "Online Time" ) if ( time ) then setElementData ( source, "Online Time", time ) else setElementData ( source, "Online Time",0 ) setAccountData ( playeraccount, "Online Time",0 ) end end end addEventHandler ( "onPlayerQuit", root, onPlayerQuit ) addEventHandler ( "onPlayerLogin", root, onPlayerLogin )
  21. mint3d

    EXP Help

    Problem Solved Code Removed
×
×
  • Create New...