forked from RPFramework/RPFramework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCfgRemoteExec.hpp
57 lines (49 loc) · 1.64 KB
/
CfgRemoteExec.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#define Function(NAME,TARGET) class NAME { \
allowedTargets = TARGET; \
};
#define ANYONE 0
#define CLIENT 1
#define SERVER 2
class CfgRemoteExec {
class Functions {
mode = 1;
jip = 0;
/* Client functions */
Function(Client_fnc_loadInventory,CLIENT)
Function(Client_fnc_hintMP,CLIENT)
Function(Client_fnc_addBank,CLIENT)
Function(Client_fnc_addCash,CLIENT)
Function(Client_fnc_cuffTarget,CLIENT)
Function(Client_fnc_putInCarTarget,CLIENT)
Function(Client_fnc_unCuffTarget,CLIENT)
Function(Client_fnc_receiveGarage,CLIENT)
Function(Client_fnc_receiveKeys,CLIENT)
/* Server functions */
Function(Server_fnc_initStats,SERVER)
Function(Server_fnc_replicateMoney,SERVER)
Function(Server_fnc_confirmMoney,SERVER)
Function(Server_fnc_statSave,SERVER)
Function(Server_fnc_insertKey,SERVER)
Function(Server_fnc_deleteKey,SERVER)
Function(Server_fnc_deleteKeys,SERVER)
Function(Server_fnc_setupVehiclesKilledHandlers,SERVER)
/* Anyone functions */
Function(Client_fnc_playSound,ANYONE)
#include "Functions\modules\CONFIG\moduleRemoteFunctions.hpp"
/*
Don't uncomment these unless you're in a testing environment
Function(bis_fnc_execvm,ANYONE)
Function(bis_fnc_debugconsoleexec,ANYONE)*/
};
class Commands {
mode = 1;
jip = 0;
Function(setFuel,ANYONE)
Function(setOwner,ANYONE)
/*
Don't uncomment these unless you're in a testing environment
Function(spawn,ANYONE)
Function(call,ANYONE)
Function(execVM,ANYONE)*/
};
};