
mHUD
CodeM
- ESX
- QBCore

CodeM
Exemple d'utilisation
AddEventHandler('ToggleCruiseMode', function()
if (GetPedInVehicleSeat(GetVehiclePedIsIn(PlayerPedId(), false), -1) == PlayerPedId()) then
-- Check if cruise control button pressed, toggle state and set maximum speed appropriately
PlaySoundFrontend(-1, "Faster_Click", "RESPAWN_ONLINE_SOUNDSET", 1)
cruisemode = not cruisemode
local cruiseSpeed = GetEntitySpeed(GetVehiclePedIsIn(PlayerPedId(), false))
if cruisemode then
exports["Venice-Notification"]:Notify('Cruise Mode Enabled', 5000, "info")
-- or
--TriggerEvent('codem-notification', 'Cruise Mode Enabled', 5000, "info")
else
exports["Venice-Notification"]:Notify('Cruise Mode Disabled', 5000, "info")
-- or
--TriggerEvent('codem-notification', 'Cruise Mode Disabled', 5000, "info")
end
local maxSpeed = cruisemode and cruiseSpeed or GetVehicleHandlingFloat(GetVehiclePedIsIn(PlayerPedId(), false), "CHandlingData","fInitialDriveMaxFlatVel")
SetEntityMaxSpeed(GetVehiclePedIsIn(PlayerPedId(), false), maxSpeed)
end
end)
exports["Venice-Notification"]:Notify('First and Last name is already in use.', 5000, "check")
exports["Venice-Notification"]:Notify('First and Last name is already in use.', 5000, "lspd")ensure codem-notification
Vérifié : l'unique ressource de ce téléchargement.
Issu d'une vérification statique des fichiers par le RPScripts Lab. Ce n'est pas un test de démarrage de votre serveur.
Codem-AdvancedNotifySystem
7,99 $US7,99 €6,99 £GB11,99 $AU40,99 R$6,99 CHF1 270 JPY
CodeM

0Resmon


Jakrino


Vous ne trouvez pas le script exact ? Générez-le.
Décris un script sur mesure. 3 crédits gratuits par jour, jusqu’à 15 par mois civil ; sans carte.