Jump to content

joriss11

Members
  • Posts

    25
  • Joined

  • Last visited

Details

  • Gang
    gang

joriss11's Achievements

Advanced Member

Advanced Member (8/54)

1

Reputation

  1. Got it working already haha, thanks anyways!
  2. Anyone still has a working link to this script including meta and :~? cause the current link is broken
  3. Thanks it worked now, the only issue I am having now, is that its only a one-use script. as It has to be restarted, once a car was destroyed. after that it wont work haha Edit: nvm, works now. Thanks anyways
  4. @URBAN This worked, however this TP's the player outside of the vehicle, instead of letting him get out using the regular animation. Which is what I was trying to achieve. Is that possible to do so?
  5. Ahh, I tried client side, that might be the issue
  6. Tried your code @URBAN, however this doesn't work either. Using your code the script wont even load, which is a problem haha.
  7. Hey, i am having an issue regarding a certain script. I am trying to create a script, in which the player will automaticly exit the vehicle once it catches fire / has a certain amount of health left. this is what I currently have : [lua] setTimer( function (player) local yass = getPedOccupiedVehicle(player) for _, vehicle in ipairs ( getElementsByType ( "vehicle" ) ) do if getElementHealth(vehicle) < 301 then setVehicleDamageProof( vehicle, true) setVehicleEngineState( vehicle, false) setTimer(removeThePed, 100, 1) else if getElementHealth(vehicle) > 302 then setVehicleDamageProof( vehicle, false) setVehicleEngineState( vehicle, true) end end end end, 100, 0 ) function removeThePed ( ) removePedFromVehicle ( yass ) -- Removes the ped from any vehicle. end [/lua] From what I know I tried my best to get things working correctly. The damage proof and engine state works fine, but the player wont exit the vehicle. if anyone could assist me, that would be great, joriss11
  8. Can you sent me this map?
  9. lets hope that it will turn out fully working, and become a open source Arms Shop scripts. Would use it 100%!
  10. joriss11

    RPG Gamemode

    There is something wrong with the scripts then, wich causes this error. without any code, we cant actually help u.
  11. Contact me on skype: joriss11 , from the Netherlands
  12. FPSLimit = 37 FPSMax = 1 function onClientResourceStart ( resource ) if getElementData(thePlayer, "Class") == "Classname" then if ( guiFPSLabel == nil ) then FPSLimit = 255 / FPSLimit guiFPSLabel = guiCreateLabel ( 0.03, 0.97, 0.1, 0.1, "FPS: 0", true ) FPSCalc = 0 FPSTime = getTickCount() + 1000 addEventHandler ( "onClientRender", getRootElement (), onClientRender ) end end addEventHandler ( "onClientResourceStart", getRootElement (), onClientResourceStart ) function onClientRender ( ) if ( getTickCount() < FPSTime ) then FPSCalc = FPSCalc + 1 else if ( FPSCalc > FPSMax ) then FPSLimit = 255 / FPSCalc FPSMax = FPSCalc end guiSetText ( guiFPSLabel, "FPS: "..FPSCalc.." Max: "..FPSMax ) guiLabelSetColor ( guiFPSLabel, 255 - math.ceil ( FPSCalc * FPSLimit ), math.ceil ( FPSCalc * FPSLimit ), 0 ) FPSCalc = 0 FPSTime = getTickCount() + 1000 end end You can change thePlayer in the Player thing your using, and Change Class into class if not working.
  13. joriss11

    [Help] SQL

    SQL isn't that easy tho. Try to figure it out yourself first, use the wiki. I know something about SQL, but its hard to explain.
×
×
  • Create New...