Files
AltisLifeFramework/life_hc/MySQL/WantedSystem/fn_wantedRemove.sqf
Benjamin Kyd c8014ec81e initial commit
2019-06-05 00:45:50 +01:00

19 lines
547 B
Plaintext

/*
File: fn_wantedRemove.sqf
Author: Bryan "Tonic" Boardwine"
Database Persistence By: ColinM
Assistance by: Paronity
Stress Tests by: Midgetgrimm
This file is for Nanou's HeadlessClient.
Description:
Removes a person from the wanted list.
*/
private ["_uid","_query"];
_uid = [_this,0,"",[""]] call BIS_fnc_param;
if (_uid isEqualTo "") exitWith {}; //Bad data
_query = format ["UPDATE wanted SET active = '0', wantedCrimes = '[]', wantedBounty = 0 WHERE wantedID='%1'",_uid];
[_query,2] call HC_fnc_asyncCall;