@@ -54,7 +54,7 @@ void CLuaPedDefs::LoadFunctions(void)
54
54
CLuaCFunctions::AddFunction (" removePedClothes" , RemovePedClothes);
55
55
CLuaCFunctions::AddFunction (" givePedJetPack" , GivePedJetPack);
56
56
CLuaCFunctions::AddFunction (" removePedJetPack" , RemovePedJetPack);
57
- CLuaCFunctions::AddFunction (" setPedJetPack " , SetPedJetPack );
57
+ CLuaCFunctions::AddFunction (" setPedWearingJetpack " , SetPedWearingJetpack );
58
58
CLuaCFunctions::AddFunction (" setPedFightingStyle" , SetPedFightingStyle);
59
59
CLuaCFunctions::AddFunction (" setPedWalkingStyle" , SetPedMoveAnim);
60
60
CLuaCFunctions::AddFunction (" setPedGravity" , SetPedGravity);
@@ -97,7 +97,7 @@ void CLuaPedDefs::AddClass(lua_State* luaVM)
97
97
lua_classfunction (luaVM, " removeFromVehicle" , " removePedFromVehicle" );
98
98
lua_classfunction (luaVM, " removeJetPack" , " removePedJetPack" );
99
99
lua_classfunction (luaVM, " doesHaveJetpack" , " doesPedHaveJetPack" );
100
- lua_classfunction (luaVM, " setJetPack " , " setPedJetPack " );
100
+ lua_classfunction (luaVM, " setWearingJetpack " , " setPedWearingJetpack " );
101
101
102
102
lua_classfunction (luaVM, " isDead" , " isPedDead" );
103
103
lua_classfunction (luaVM, " isDucked" , " isPedDucked" );
@@ -162,7 +162,7 @@ void CLuaPedDefs::AddClass(lua_State* luaVM)
162
162
GetPedOccupiedVehicle); // what about removePedFromVehicle?
163
163
lua_classvariable (luaVM, " dead" , " killPed" , " isPedDead" ); // Setting this to any value will still kill the ped. Should we special case this?
164
164
lua_classvariable (luaVM, " walkingStyle" , " setPedWalkingStyle" , " getPedWalkingStyle" );
165
- lua_classvariable (luaVM, " jetpack" , " setPedJetPack " , " doesPedHaveJetPack" );
165
+ lua_classvariable (luaVM, " jetpack" , " setPedWearingJetpack " , " doesPedHaveJetPack" );
166
166
// lua_classvariable ( luaVM, "stats", "setPedStat", "getPedStat", CLuaOOPDefs::SetPedStat, CLuaOOPDefs::GetPedStat ); // table
167
167
// lua_classvariable ( luaVM, "controlState", "setPedControlState", "getPedControlState", CLuaOOPDefs::SetPedControlState, CLuaOOPDefs::GetPedControlState
168
168
// ); // TODO: .controlState["control"] = value
@@ -1241,7 +1241,7 @@ int CLuaPedDefs::RemovePedJetPack(lua_State* luaVM)
1241
1241
return 1 ;
1242
1242
}
1243
1243
1244
- int CLuaPedDefs::SetPedJetPack (lua_State* luaVM)
1244
+ int CLuaPedDefs::SetPedWearingJetpack (lua_State* luaVM)
1245
1245
{
1246
1246
CElement* pElement;
1247
1247
bool bJetPack;
@@ -1254,7 +1254,7 @@ int CLuaPedDefs::SetPedJetPack(lua_State* luaVM)
1254
1254
{
1255
1255
LogWarningIfPlayerHasNotJoinedYet (luaVM, pElement);
1256
1256
1257
- if (CStaticFunctionDefinitions::SetPedJetPack (pElement, bJetPack))
1257
+ if (CStaticFunctionDefinitions::SetPedWearingJetpack (pElement, bJetPack))
1258
1258
{
1259
1259
lua_pushboolean (luaVM, true );
1260
1260
return 1 ;
0 commit comments