Jump to content

Cruze

Members
  • Posts

    109
  • Joined

  • Last visited

Everything posted by Cruze

  1. Is this project dead? It's a shame, it's actually very great!
  2. Nope it's an open source look viewtopic.php?f=108&t=82870 #REKT Rekt? Lmao I see how low leveled you're buddy, I never knew it's open source. And just ask the author who made this system or report this bug in the official topic of this open-source gamemode.
  3. deliveryLocations = { {275, 1956, 17}, -- LV Military Forces HQ Base {-1303, 473, 7}, -- SF Naval Ship Base } rhinoLocations = { --LV {-685, 1195, 14}, {2542, 2853, 10}, --SF {-1742, 2445, 70}, {-1950, -1083, 30}, {-2071, -2437, 30}, --LS {2264, -2539, 8}, {679, -443, 16}, } function generateAV() local x, y, z = unpack(rhinoLocations[math.random(#rhinoLocations)]) avRhino = createVehicle(432, x, y, z+0.5) blip = createBlipAttachedTo(avRhino, 19) function onPlayerEnterTheAV(pla) local team = getPlayerTeam(pla) local teamName = getTeamName(team) if (teamName == "Criminals" or teamName == "Police" or teamName == "Military Forces" or teamName == "SWAT") then addEventHandler("onVehicleEnter", avRhino, generateDeliveryLocation) elseif (teamName ~= "Criminals" or teamName ~= "Police" or teamName ~= "Military Forces" or teamName ~= "SWAT") then outputChatBox("You cannot access this vehicle.", pla, 255, 0, 0) cancelEvent() end end addEventHandler("onVehicleStartEnter", avRhino, onPlayerEnterTheAV) end setTimer(generateAV, 5000, 1) function generateDeliveryLocation(pla) local x, y, z = unpack(deliveryLocations[math.random(#deliveryLocations)]) deliveryMarker = createMarker(x, y, z-1, "cylinder", 8, 255, 255, 0) locationBlip = createBlipAttachedTo(deliveryMarker, 19) rhinoDisarm = getPedOccupiedVehicle(pla) toggleControl("vehicle_fire", false) addEventHandler("onMarkerHit", deliveryMarker, generateRhinoPaymentMarker) end function generateRhinoPaymentMarker(pla) if (not isPedInVehicle(pla)) then return end rhino = getPedOccupiedVehicle(pla) x, y, z = getElementPosition(rhino) paymentMarker = createMarker(x + 1, y, z, 1, 255, 255, 0) setElementFrozen(rhino, true) addEventHandler("onMarkerHit", paymentMarker, payDeliveryService) end function payDeliveryService(pla) if (isPedInVehicle(pla)) then return end local team = getPlayerTeam(pla) local teamName = getTeamName(team) if (teamName ~= "Criminals" or teamName ~= "Police" or teamName ~= "Military Forces" or teamName ~= "SWAT") then return end outputChatBox("The NGC Law headquarters have decided to pay you for the service of protecting the lost Rhino! Grab your stash of money near the vehicle", pla, 255, 100, 194) givePlayerMoney(pla, 20000) destroyElement(paymentMarker) end ^ I don't know why I'm getting this.
  4. 3B00d, eh. It's my own script, I figured out that the element data was the problem. So instead I used my server export to detect if the player is logged in or nope. If you want more proofs, go ahead and PM me. /requesting a lock. P.S Guys, please remove my code to avoid getting it stolen.
  5. I fixed it, thanks for help guys!
  6. Now when I press F1 nothing appears. No debug errors.
  7. huh, didn't you notice that he used local playerpos = getLocalPlayer()?, so instead of repeating getLocalPlayer(), using playerpos would fit.
  8. Check for viruses please, also you processor is kind of low. 256 gb graphic card? You meant mb. What's the name of the card?
  9. Oh my god! That's awesome! I got fucking skills in filming, looking forward for more vids!
  10. Well, it's like when hitting a marker, the dx rect must appear to the hitElement, I used it, appeared for whole players...
  11. Well I was trying to know what to put in the event of @addEventHandler("onClientRender", localPlayer, showUI) I used that one, it still showing for all players, so any solutions?
  12. Can you give me a little example?
  13. I was wondering everyday, how I could assign the correct resolution for GUI alot of people said to me use maths, I know maths, but how to calculate it?
  14. Cruze

    Need Scripter

    Didn't recieve any invite are you sure you added me?
  15. Cruze

    Need Scripter

    Add me on skype: aymen.keyboard
  16. Cruze

    AFK script

    Changed from clientside ("localPlayer" works on client only) to serverside ("client" works on server only)
  17. Cruze

    AFK script

    function afkCommand( ) if (isPedOnGround(client)) then if (getElementDimension(client) < 10) then outputChatBox("You will be AFK in 5 seconds", client, 255, 255, 255) setTimer(function () setElementDimension(client, math.random(10 - 1000)) setElementFrozen(client, true) end, 5000, 1) elseif (getElementDimension(client) >= 10) then outputChatBox("You will be returned to the main dimension in 5 seconds", client, 255, 255, 255) setTimer(function () setElementDimension(client, 0) setElementFrozen(client, false) end, 5000, 1) end else outputChatBox("You must be on foot to use this command.", client, 255, 255, 255) end end addCommandHandler("afk", afkCommand)
  18. Cruze

    AFK script

    Make it server sided.
  19. Cruze

    AFK script

    Try that local theVehicle = getPedOccupiedVehicle(localPlayer) function afkCommand(localPlayer) if (isPedInVehicle(localPlayer)) then outputChatBox("You must be on foot to use this command.", localPlayer, 255, 255, 255) elseif (isPedOnGround(localPlayer)) then if (getElementPosition(localPlayer) ~= 0) then outputChatBox("You will be AFK in 5 seconds", localPlayer, 255, 255, 255) setTimer(function () setElementPosition(localPlayer, math.random(10 - 1000)) setElementFrozen(localPlayer, true) end, 5000, 1) elseif (getElementPosition(localPlayer) >= 10) then outputChatBox("You will be returned to the main dimension in 5 seconds", localPlayer, 255, 255, 255) setTimer(function () setElementPosition(localPlayer, 0) setElementFrozen(localPlayer, false) end, 5000, 1) end end end addCommandHandler("afk", afkCommand)
×
×
  • Create New...