Diff
checker
Texte
Texte
Images
Documents
Excel
Dossiers
Legal
Enterprise
Application de bureau
Prix
Se connecter
Télécharger Diffchecker Desktop
Comparer le texte
Trouver la différence entre deux fichiers texte
Outils
Historique
Affichage
Vue
Divisé
Unifié
Éditeur live
Masquer les espaces
Cacher identiques
Sans retour à la ligne
Niveau de précision
Intelligent
Syntaxe
Aucun
Modifier l’apparence
Traitement
Ignorer
Transformer le texte
Aller au premier écart
Modifier l'entrée
Diffchecker Desktop
La façon la plus sécurisée d'utiliser Diffchecker. Obtenez l'application Diffchecker Desktop : vos diffs ne quittent jamais votre ordinateur !
Obtenir Desktop
Toggle Vehicle Extra
Créé
il y a 5 ans
Le diff n'expire jamais
Effacer
Exporter
Partager
Expliquer
5 suppressions
Lignes
Total
Supprimé
Caractères
Total
Supprimé
Pour continuer à utiliser cette fonctionnalité, passez à
Diff
checker
Pro
Voir les prix
15 lignes
Copier tout
15 ajouts
Lignes
Total
Ajouté
Caractères
Total
Ajouté
Pour continuer à utiliser cette fonctionnalité, passez à
Diff
checker
Pro
Voir les prix
20 lignes
Copier tout
Copier
Copié
Copier
Copié
TriggerEvent('chat:addSuggestion', '/cruise', 'Toggle cruise lights on designated vehicles')
RegisterCommand("cruise", function()
RegisterCommand("cruise", function()
Copier
Copié
Copier
Copié
TriggerEvent('chat:addSuggestion', '/cruise', 'Toggle cruise lights on designated vehicles')
local player = PlayerPedId()
local player = PlayerPedId()
local vehicle = GetVehiclePedIsIn(player, false)
local vehicle = GetVehiclePedIsIn(player, false)
Copier
Copié
Copier
Copié
if vehicle
==
lib11
then
if vehicle
~= nil and GetDisplayNameFromVehicleModel(GetEntityModel(vehicle))
==
"
lib11
"
then
if IsVehicleExtraTurnedOn(vehicle, 3) then
if IsVehicleExtraTurnedOn(vehicle, 3) then
SetVehicleExtra(vehicle, 3, 1)
SetVehicleExtra(vehicle, 3, 1)
Copier
Copié
Copier
Copié
else
SetVehicleExtra(vehicle, 3, 0)
else
SetVehicleExtra(vehicle, 3, 0)
end
else
if
else
TriggerEvent('chat:addMessage', {
TriggerEvent('chat:addMessage', {
color = { 255, 0, 0},
color = { 255, 0, 0},
multiline = true,
multiline = true,
args = {"OLRP", "This is not the appropriate vehicle for this command."}
args = {"OLRP", "This is not the appropriate vehicle for this command."}
Copier
Copié
Copier
Copié
})
})
Copier
Copié
Copier
Copié
end
Copier
Copié
Copier
Copié
end)
end)
Différences enregistrées
Texte d'origine
Ouvrir un fichier
RegisterCommand("cruise", function() TriggerEvent('chat:addSuggestion', '/cruise', 'Toggle cruise lights on designated vehicles') local player = PlayerPedId() local vehicle = GetVehiclePedIsIn(player, false) if vehicle == lib11 then if IsVehicleExtraTurnedOn(vehicle, 3) then SetVehicleExtra(vehicle, 3, 1) else SetVehicleExtra(vehicle, 3, 0) elseif TriggerEvent('chat:addMessage', { color = { 255, 0, 0}, multiline = true, args = {"OLRP", "This is not the appropriate vehicle for this command."} }) end)
Texte modifié
Ouvrir un fichier
TriggerEvent('chat:addSuggestion', '/cruise', 'Toggle cruise lights on designated vehicles') RegisterCommand("cruise", function() local player = PlayerPedId() local vehicle = GetVehiclePedIsIn(player, false) if vehicle ~= nil and GetDisplayNameFromVehicleModel(GetEntityModel(vehicle)) == "lib11" then if IsVehicleExtraTurnedOn(vehicle, 3) then SetVehicleExtra(vehicle, 3, 1) else SetVehicleExtra(vehicle, 3, 0) end else TriggerEvent('chat:addMessage', { color = { 255, 0, 0}, multiline = true, args = {"OLRP", "This is not the appropriate vehicle for this command."} }) end end)
Trouver la différence