Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. GTA Online

      1. The Diamond Casino Heist
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
    2. Red Dead Online

      1. Frontier Pursuits
      2. Find Lobbies & Outlaws
      3. Help & Support
    3. Crews

      1. Events
    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Redemption

    1. Grand Theft Auto Series

    2. GTA 6

    3. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
      5. GTA IV Mods
    5. GTA Chinatown Wars

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA SA Mods
    9. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA VC Mods
    10. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA III Mods
    11. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    3. Gangs

    1. News

    2. Forum Support

    3. Site Suggestions

XXMV_Destroyer

Knocked off Vehicle

Recommended Posts

XXMV_Destroyer

Hey Guy´s

 

I´m new to coding and new in this Forum.

 

i´m from germany an 23 ;P

 

atm i create my own sprx but i have problems with this...

 

void(*SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE)(int p1, bool p2) = (void(*)(int, bool))&SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE_t;
opd_s SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE_t = { 0x40C360, TOC };



bool knockedon;
void KnockedOn(int)
{
if (Knocked == false) // Knocked is undefined..??
{
Knocked = true;
Funcs::SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE(Funcs::player_ped_id(), true);
Funcs::PRINT("Kein Sturz~b~AN", 2000);
}
else
{
Knocked = false;
Funcs::SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE(Funcs::player_ped_id(); false;
Funcs::PRINT("Kein Sturz~r~AUS", 2000);
}
}

 

 

Thanks fo help :cool:

Share this post


Link to post
Share on other sites
Fireboyd78

Are you using ScriptHook V? It doesn't look like anything I've ever seen...

Share this post


Link to post
Share on other sites
ChOcOsKiZo

Hey Guy´s

 

I´m new to coding and new in this Forum.

 

i´m from germany an 23 ;P

 

atm i create my own sprx but i have problems with this...

 

void(*SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE)(int p1, bool p2) = (void(*)(int, bool))&SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE_t;

opd_s SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE_t = { 0x40C360, TOC };

 

 

 

bool knockedon;

void KnockedOn(int)

{

if (Knocked == false) // Knocked is undefined..??

{

Knocked = true;

Funcs::SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE(Funcs::player_ped_id(), true);

Funcs::PRINT("Kein Sturz~b~AN", 2000);

}

else

{

Knocked = false;

Funcs::SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE(Funcs::player_ped_id(); false;

Funcs::PRINT("Kein Sturz~r~AUS", 2000);

}

}

 

Thanks fo help :cool:

this might work
bool knockedon;void KnockedOn(int){    if (knockedon== false)  // bool is defined above    {        knockedon= true;        Funcs::SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE(Funcs::player_ped_id(), true);        Funcs::PRINT("Kein Sturz~b~AN", 2000);    }    else    {        knockedon= false;        Funcs::SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE(Funcs::player_ped_id(); false);        Funcs::PRINT("Kein Sturz~r~AUS", 2000);    }}
better coding
bool knockedon;void KnockedOn(){	knockedon = !knockedon;	Func::SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE(Func::player_ped_id(), knockedon);	Func::PRINT(knockedon ? "Kein Sturz~b~AN" : "Kein Sturbz ~AUS~", 2000);}
you should go on nextgenupdate forum , in the scripts and code forum of gta 5 you'll find what you need , as here it's more pc modding , even if lot of stuff is the same langage is a lil bit different

Are you using ScriptHook V? It doesn't look like anything I've ever seen...

it's c++ , sprx for gta ps3 :) Edited by ChOcOsKiZo
  • Like 1

Share this post


Link to post
Share on other sites
thewhitehammer99

Are you using ScriptHook V? It doesn't look like anything I've ever seen...

No such thing as a script hook for sprx (ps3 plugin basically)

 

But just an FYI to the op, a lot of people here are against console modding, so like said above your best bet is to go on ngu :p

Share this post


Link to post
Share on other sites
Fireboyd78

I totally missed the whole "sprx" part, lol. If people are going to come here with that stuff, they should at least specify it clearly :p

Share this post


Link to post
Share on other sites
ChOcOsKiZo

 

Are you using ScriptHook V? It doesn't look like anything I've ever seen...

No such thing as a script hook for sprx (ps3 plugin basically)

 

But just an FYI to the op, a lot of people here are against console modding, so like said above your best bet is to go on ngu :p

 

console modding or "online" modding ? i thought they were against "online" modding...

Edited by ChOcOsKiZo

Share this post


Link to post
Share on other sites
thewhitehammer99

 

 

Are you using ScriptHook V? It doesn't look like anything I've ever seen...

No such thing as a script hook for sprx (ps3 plugin basically)

 

But just an FYI to the op, a lot of people here are against console modding, so like said above your best bet is to go on ngu :p

 

console modding or "online" modding ? i thought they were against "online" modding...

I was told that console modding in General wasn't supported here unless it was for documentation purposes...

Share this post


Link to post
Share on other sites
ChOcOsKiZo

 

 

 

Are you using ScriptHook V? It doesn't look like anything I've ever seen...

No such thing as a script hook for sprx (ps3 plugin basically)

 

But just an FYI to the op, a lot of people here are against console modding, so like said above your best bet is to go on ngu :p

 

console modding or "online" modding ? i thought they were against "online" modding...

I was told that console modding in General wasn't supported here unless it was for documentation purposes...

 

ok thanks , good to know , so i won't post anymore codes , unless it's for documentation purposes :) because i only mod on ps3 , but i bought my game btw , same for gta san andreas and gta4 , i've always been a fan of gta , since day one , gta one one ps1 :)

Edited by ChOcOsKiZo

Share this post


Link to post
Share on other sites
XXMV_Destroyer

 

Hey Guy´s

 

I´m new to coding and new in this Forum.

 

i´m from germany an 23 ;P

 

atm i create my own sprx but i have problems with this...

 

void(*SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE)(int p1, bool p2) = (void(*)(int, bool))&SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE_t;

opd_s SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE_t = { 0x40C360, TOC };

 

 

 

bool knockedon;

void KnockedOn(int)

{

if (Knocked == false) // Knocked is undefined..??

{

Knocked = true;

Funcs::SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE(Funcs::player_ped_id(), true);

Funcs::PRINT("Kein Sturz~b~AN", 2000);

}

else

{

Knocked = false;

Funcs::SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE(Funcs::player_ped_id(); false;

Funcs::PRINT("Kein Sturz~r~AUS", 2000);

}

}

 

 

Thanks fo help :cool:

this might work

bool knockedon;void KnockedOn(int){    if (knockedon== false)  // bool is defined above    {        knockedon= true;        Funcs::SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE(Funcs::player_ped_id(), true);        Funcs::PRINT("Kein Sturz~b~AN", 2000);    }    else    {        knockedon= false;        Funcs::SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE(Funcs::player_ped_id(); false);        Funcs::PRINT("Kein Sturz~r~AUS", 2000);    }}

better coding

bool knockedon;void KnockedOn(){	knockedon = !knockedon;	Func::SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE(Func::player_ped_id(), knockedon);	Func::PRINT(knockedon ? "Kein Sturz~b~AN" : "Freez vehicle ~r~OFF", 2000);}

you should go on nextgenupdate forum , in the scripts and code forum of gta 5 you'll find what you need , as here it's more pc modding , even if lot of stuff is the same langage is a lil bit different

Are you using ScriptHook V? It doesn't look like anything I've ever seen...

it's c++ , sprx for gta ps3 :)

 

 

Thank you mate :)

 

@the rest

okay i doesn´t know that this is for PC, sorry :p

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.