Français Solved Comment rechercher une plaque d'immatriculation depuis un véhicule ?

  • Auteur de la discussion Auteur de la discussion Nolan
  • Date de début Date de début

Nolan

User
16/1/21
8
0
250
Bonjour, comment faire en sorte que on puisse rechercher une plaque depuis un véhicule. J'ai essayer de faire ça
[CODE title="fn_setupAction.sqf"]/*
File: fn_setupActions.sqf
Author:

Description:
Master addAction file handler for all client-based actions.
*/

life_actions = [];

switch (playerSide) do {

//Civilian
case civilian: {
//Drop fishing net
life_actions pushBack (player addAction[localize "STR_pAct_DropFishingNet",life_fnc_dropFishingNet,"",0,false,false,"",'
(surfaceisWater (getPos vehicle player)) && (vehicle player isKindOf "Ship") && life_carryWeight < life_maxWeight && speed (vehicle player) < 2 && speed (vehicle player) > -1 && !life_net_dropped ']);

//Rob person
life_actions pushBack (player addAction[localize "STR_pAct_RobPerson",life_fnc_robAction,"",0,false,false,"",'
!isNull cursorObject && player distance cursorObject < 3.5 && isPlayer cursorObject && animationState cursorObject == "Incapacitated" && !(cursorObject getVariable ["robbed",false]) ']);
};

//Cops
case west: { };
life_actions pushBack (player addAction["Fichier plaques",{createDialog "max_search_plate"},"",0,false,false,"",'(vehicle player isKindOf "Car")']);

//EMS
case independent: { };

};[/CODE]

Malheureusement cela ne marche pas. Je possède le Duty Système.
 
Solution
Hello ! Tu as mis l'action en dehors des accolades, il faut remplacer ça :
Code:
    case west: { };
        life_actions pushBack (player addAction["Fichier plaques",{createDialog "max_search_plate"},"",0,false,false,"",'(vehicle player isKindOf "Car")']);
par ça :
Code:
    case west: {
        life_actions pushBack (player addAction["Fichier plaques",{createDialog "max_search_plate"},"",0,false,false,"",'(vehicle player isKindOf "Car")']);
    };

Et ça devrait être bon :)
Hello ! Tu as mis l'action en dehors des accolades, il faut remplacer ça :
Code:
    case west: { };
        life_actions pushBack (player addAction["Fichier plaques",{createDialog "max_search_plate"},"",0,false,false,"",'(vehicle player isKindOf "Car")']);
par ça :
Code:
    case west: {
        life_actions pushBack (player addAction["Fichier plaques",{createDialog "max_search_plate"},"",0,false,false,"",'(vehicle player isKindOf "Car")']);
    };

Et ça devrait être bon :)
 
Solution