index a nil requestscaleformmovie -- Affiche que les blips du métier choisi (de esx_jobs uniquement) esx_jobs/client/esx_jobs_cl.lua function refreshBlips() local zones = {} local blipInfo = {} if PlayerData.job ~= nil then for jobKey,jobValues in pairs(Config.Jobs) do for zoneKey,zoneValues in pairs(jobValues.Zones) do if zoneValues.Blip then index a nil requestscaleformmovie How to use it? index a nil requestscaleformmovie if PlayerData.job.name == jobKey then local blip = AddBlipForCoord(zoneValues.Pos.x, zoneValues.Pos.y, zoneValues.Pos.z) SetBlipSprite (blip, jobValues.BlipInfos.Sprite) SetBlipDisplay(blip, 4) SetBlipScale (blip, 1.2) SetBlipColour (blip, jobValues.BlipInfos.Color) SetBlipAsShortRange(blip, true) BeginTextCommandSetBlipName("STRING") AddTextComponentString(zoneValues.Name) EndTextCommandSetBlipName(blip) index a nil requestscaleformmovie How to get it? index a nil requestscaleformmovie table.insert(JobBlips, blip) end end end end end end RegisterNetEvent('esx:setJob') index a nil requestscaleformmovie How to get it for free? index a nil requestscaleformmovie AddEventHandler('esx:setJob', function(job) PlayerData.job = job onDuty = false myPlate = {} -- loosing vehicle caution in case player changes job. isJobVehicleDestroyed = false spawner = 0 deleteBlips() refreshBlips() end) index a nil requestscaleformmovie PasteShr index a nil requestscaleformmovie -- FXServer updater - linux [NO SUPPORT FOR THIS] #!/bin/sh BASEURL="https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/" BUILD=$(wget -qO- $BASEURL | xargs -I {} echo {} | grep ' tonumber(n) then return false end return true end -- GITHUB DOWNLOAD MASTER.ZIP index a nil requestscaleformmovie PasteShr index a nil requestscaleformmovie function GetUpdateFile(resouceName, version) print('Download new version ::: ' ) PerformHttpRequest('https://github.com/ESX-Org/' .. resouceName .. '/archive/' .. version .. '.zip', function(err, file, headers) SaveResourceFile(resouceName, 'update' .. version .. '.zip', file, string.len( file )) print('Download end ::: ' ) -- UNZIP WORK end, 'GET', "", { ["Content-Type"] = 'application/zip' }) end index a nil requestscaleformmovie PasteShr index a nil requestscaleformmovie -- GITHUB READ __RESOURCES.LUA function GetGithubResource(resourceName) PerformHttpRequest('https://raw.githubusercontent.com/ESX-Org/'.. resourceName ..'/master/__resource.lua', function(err, resource, headers) for s in string.gmatch(resource, "([^\n]*)\n?") do if string.match(s, 'version') then if string.len( s ) < 20 then github = string.sub( s, 10, 14 ) local_script = GetResourceMetadata(resourceName, 'version', 0) print(resourceName .. '\nVersion :::: ' .. local_script .. '\nGithub :::: ' .. github ) index a nil requestscaleformmovie How to get it for free? index a nil requestscaleformmovie if IsUpdate(local_script, github) == false then GetUpdateFile(resourceName, github) end end end end end, 'GET') end -- index a nil requestscaleformmovie PasteShr index a nil requestscaleformmovie AddEventHandler('onResourceStart', function(resource) version = GetResourceMetadata(resource, 'version', 0) if version ~= nil then GetGithubResource(resource) end end) index a nil requestscaleformmovie How to use it? index a nil requestscaleformmovie -- Message quand une personne conduit sans permis Citizen.CreateThread(function() while true do local ownedLicenses = {} for i=1, #Licenses, 1 do ownedLicenses[Licenses[i].type] = true end index a nil requestscaleformmovie PasteShr index a nil requestscaleformmovie Citizen.Wait(1) if(IsPedInAnyVehicle(GetPlayerPed(-1), false)) and (not ownedLicenses['dmv'] or not ownedLicenses['drive']) and CurrentTest ~= 'drive' then DrawMissionText("~r~You are driving without a license", 2000) end end end) -- Scaleform Breaking news index a nil requestscaleformmovie How to dowload it? index a nil requestscaleformmovie function breakingnews() scaleform = RequestScaleformMovie("breaking_news") while not HasScaleformMovieLoaded(scaleform) do Citizen.Wait(0) end PushScaleformMovieFunction(scaleform, "SET_TEXT") PushScaleformMovieFunctionParameterString("Quit") PushScaleformMovieFunctionParameterString("Bold Italics ~r~Coloured ~d~") PopScaleformMovieFunctionVoid() index a nil requestscaleformmovie How to get it? index a nil requestscaleformmovie PushScaleformMovieFunction(scaleform, "SET_SCROLL_TEXT") PushScaleformMovieFunctionParameterInt(0) -- top ticker PushScaleformMovieFunctionParameterInt(0) -- Since this is the first string, start at 0 PushScaleformMovieFunctionParameterString("This will be displayed at the top") PopScaleformMovieFunctionVoid() PushScaleformMovieFunction(scaleform, "DISPLAY_SCROLL_TEXT") PushScaleformMovieFunctionParameterInt(0) -- Top ticker index a nil requestscaleformmovie How to get it? index a nil requestscaleformmovie PushScaleformMovieFunctionParameterInt(0) -- Index of string PopScaleformMovieFunctionVoid() end Citizen.CreateThread(function() while true do Citizen.Wait(0) breakingnews() end end) index a nil requestscaleformmovie How to get it? index a nil requestscaleformmovie -- Enlever le drop d'arme des PNJ script client.lua local pedindex = {} function SetWeaponDrops() -- This function will set the closest entity to you as the variable entity. local handle, ped = FindFirstPed() local finished = false -- FindNextPed will turn the first variable to false when it fails to find another ped in the index repeat if not IsEntityDead(ped) then pedindex[ped] = {} index a nil requestscaleformmovie How to get it for free? index a nil requestscaleformmovie end finished, ped = FindNextPed(handle) -- first param returns true while entities are found until not finished EndFindPed(handle) for peds,_ in pairs(pedindex) do if peds ~= nil then -- set all peds to not drop weapons on death. SetPedDropsWeaponsWhenDead(peds, false) end end index a nil requestscaleformmovie How to get it? index a nil requestscaleformmovie end Citizen.CreateThread(function() while true do Citizen.Wait(0) SetWeaponDrops() end end) index a nil requestscaleformmovie How to dowload it? index a nil requestscaleformmovie -- Désactive les niveau de rechercher que pour la police te ambulance, pour les autres joueurs le niveau de recherche sera activé Citizen.CreateThread(function() while true do Citizen.Wait(500) local playerId = PlayerId() if GetPlayerWantedLevel(playerId) ~= 0 and PlayerData.job.name == 'police' or GetPlayerWantedLevel(playerId) ~= 0 and PlayerData.job.name == 'ambulance' then SetPlayerWantedLevel(playerId, 0, false) index a nil requestscaleformmovie How to dowload it? index a nil requestscaleformmovie SetPlayerWantedLevelNow(playerId, false) end end end) -- Ajout de la fonction pour supprimer les permis aux policier -- server/main.lua function deleteLicense(owner, license) MySQL.Sync.execute("DELETE FROM user_licenses WHERE `owner` = @owner AND `type` = @license", { index a nil requestscaleformmovie PasteShr index a nil requestscaleformmovie ['@owner'] = owner, ['@license'] = license, }) print('Permis suppr - '..owner) print('Permis suppr - '..license) end index a nil requestscaleformmovie PasteShr index a nil requestscaleformmovie RegisterServerEvent('esx_policejob:deletelicense') AddEventHandler('esx_policejob:deletelicense', function(target, license) local text = "" local sourceXPlayer = ESX.GetPlayerFromId(source) local targetXPlayer = ESX.GetPlayerFromId(target) if(license =="weapon")then text= "Permis de port d'arme" end if(license =="dmv")then index a nil requestscaleformmovie How to get it? index a nil requestscaleformmovie text = "Code de la route" end if(license =="drive")then text= "Permis de conduire" end if(license =="drive_bike")then text= "Permis moto" end if(license =="drive_truck")then text="Permis camion" index a nil requestscaleformmovie How to dowload it? index a nil requestscaleformmovie end TriggerClientEvent('esx:showNotification', sourceXPlayer.source, 'Vous avez ~r~supprimé ~w~ : '..text..' de ~b~'..targetXPlayer.name ) TriggerClientEvent('esx:showNotification', targetXPlayer.source, '~r~' .. sourceXPlayer.name .. ' vous a retiré : '.. text) local identifier = GetPlayerIdentifiers(target)[1] deleteLicense(identifier,license) end) index a nil requestscaleformmovie How to get it? index a nil requestscaleformmovie -- client/main.lua {label = 'Retirer permis Arme', value = 'license_weapon_remove'}, {label = 'Retirer permis Moto', value = 'license_moto_remove'}, {label = 'Retirer permis Camion', value = 'license_camion_remove'}, {label = 'Retirer permis Voiture', value = 'license_voiture_remove'}, {label = 'Retirer Code', value = 'license_code_remove'} }, }, function(data2, menu2) index a nil requestscaleformmovie How to get it? index a nil requestscaleformmovie local player, distance = ESX.Game.GetClosestPlayer() if distance ~= -1 and distance <= 3.0 then if data2.current.value == 'license_see' then TriggerServerEvent('esx_policejob:license_see', GetPlayerServerId(player)) end if data2.current.value == 'license_weapon_remove' then TriggerServerEvent('esx_policejob:deletelicense', GetPlayerServerId(player), 'weapon') index a nil requestscaleformmovie How to get it? index a nil requestscaleformmovie end if data2.current.value == 'license_moto_remove' then TriggerServerEvent('esx_policejob:deletelicense', GetPlayerServerId(player), 'drive_bike') end if data2.current.value == 'license_camion_remove' then TriggerServerEvent('esx_policejob:deletelicense', GetPlayerServerId(player), 'drive_truck') end if data2.current.value == 'license_voiture_remove' then TriggerServerEvent('esx_policejob:deletelicense', GetPlayerServerId(player), 'drive') index a nil requestscaleformmovie How to use it? index a nil requestscaleformmovie end if data2.current.value == 'license_code_remove' then TriggerServerEvent('esx_policejob:deletelicense', GetPlayerServerId(player), 'dmv') end -- traffic Citizen.CreateThread(function() while true do index a nil requestscaleformmovie How to dowload it? index a nil requestscaleformmovie -- 1. SetVehicleDensityMultiplierThisFrame(0.3) --SetPedDensityMultiplierThisFrame(0.2) --SetRandomVehicleDensityMultiplierThisFrame(1.0) --SetParkedVehicleDensityMultiplierThisFrame(1.0) --SetScenarioPedDensityMultiplierThisFrame(2.0, 2.0) --local playerPed = GetPlayerPed(-1) --local pos = GetEntityCoords(playerPed) --RemoveVehiclesFromGeneratorsInArea(pos['x'] - 900.0, pos['y'] - 900.0, pos['z'] - 900.0, pos['x'] + 900.0, pos['y'] + 900.0, pos['z'] + 900.0); index a nil requestscaleformmovie PasteShr index a nil requestscaleformmovie -- 2. --SetGarbageTrucks(0) --SetRandomBoats(0) --SetRandomBus(0) Citizen.Wait(1) end end) index a nil requestscaleformmovie How to dowload it? index a nil requestscaleformmovie index a nil requestscaleformmovie