@@ -54,7 +54,7 @@ void CLuaPedDefs::LoadFunctions(void)
5454 CLuaCFunctions::AddFunction (" removePedClothes" , RemovePedClothes);
5555 CLuaCFunctions::AddFunction (" givePedJetPack" , GivePedJetPack);
5656 CLuaCFunctions::AddFunction (" removePedJetPack" , RemovePedJetPack);
57- CLuaCFunctions::AddFunction (" setPedJetPack " , SetPedJetPack );
57+ CLuaCFunctions::AddFunction (" setPedWearingJetpack " , SetPedWearingJetpack );
5858 CLuaCFunctions::AddFunction (" setPedFightingStyle" , SetPedFightingStyle);
5959 CLuaCFunctions::AddFunction (" setPedWalkingStyle" , SetPedMoveAnim);
6060 CLuaCFunctions::AddFunction (" setPedGravity" , SetPedGravity);
@@ -97,7 +97,7 @@ void CLuaPedDefs::AddClass(lua_State* luaVM)
9797 lua_classfunction (luaVM, " removeFromVehicle" , " removePedFromVehicle" );
9898 lua_classfunction (luaVM, " removeJetPack" , " removePedJetPack" );
9999 lua_classfunction (luaVM, " doesHaveJetpack" , " doesPedHaveJetPack" );
100- lua_classfunction (luaVM, " setJetPack " , " setPedJetPack " );
100+ lua_classfunction (luaVM, " setWearingJetpack " , " setPedWearingJetpack " );
101101
102102 lua_classfunction (luaVM, " isDead" , " isPedDead" );
103103 lua_classfunction (luaVM, " isDucked" , " isPedDucked" );
@@ -162,7 +162,7 @@ void CLuaPedDefs::AddClass(lua_State* luaVM)
162162 GetPedOccupiedVehicle); // what about removePedFromVehicle?
163163 lua_classvariable (luaVM, " dead" , " killPed" , " isPedDead" ); // Setting this to any value will still kill the ped. Should we special case this?
164164 lua_classvariable (luaVM, " walkingStyle" , " setPedWalkingStyle" , " getPedWalkingStyle" );
165- lua_classvariable (luaVM, " jetpack" , " setPedJetPack " , " doesPedHaveJetPack" );
165+ lua_classvariable (luaVM, " jetpack" , " setPedWearingJetpack " , " doesPedHaveJetPack" );
166166 // lua_classvariable ( luaVM, "stats", "setPedStat", "getPedStat", CLuaOOPDefs::SetPedStat, CLuaOOPDefs::GetPedStat ); // table
167167 // lua_classvariable ( luaVM, "controlState", "setPedControlState", "getPedControlState", CLuaOOPDefs::SetPedControlState, CLuaOOPDefs::GetPedControlState
168168 // ); // TODO: .controlState["control"] = value
@@ -1241,7 +1241,7 @@ int CLuaPedDefs::RemovePedJetPack(lua_State* luaVM)
12411241 return 1 ;
12421242}
12431243
1244- int CLuaPedDefs::SetPedJetPack (lua_State* luaVM)
1244+ int CLuaPedDefs::SetPedWearingJetpack (lua_State* luaVM)
12451245{
12461246 CElement* pElement;
12471247 bool bJetPack;
@@ -1254,7 +1254,7 @@ int CLuaPedDefs::SetPedJetPack(lua_State* luaVM)
12541254 {
12551255 LogWarningIfPlayerHasNotJoinedYet (luaVM, pElement);
12561256
1257- if (CStaticFunctionDefinitions::SetPedJetPack (pElement, bJetPack))
1257+ if (CStaticFunctionDefinitions::SetPedWearingJetpack (pElement, bJetPack))
12581258 {
12591259 lua_pushboolean (luaVM, true );
12601260 return 1 ;
0 commit comments