XXMV_Destroyer Posted June 7, 2015 Share Posted June 7, 2015 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 Link to comment Share on other sites More sharing options...
Fireboyd78 Posted June 7, 2015 Share Posted June 7, 2015 Are you using ScriptHook V? It doesn't look like anything I've ever seen... Link to comment Share on other sites More sharing options...
ChOcOsKiZo Posted June 7, 2015 Share Posted June 7, 2015 (edited) 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 this might workbool 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 codingbool 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 differentAre you using ScriptHook V? It doesn't look like anything I've ever seen...it's c++ , sprx for gta ps3 Edited June 8, 2015 by ChOcOsKiZo XXMV_Destroyer 1 Link to comment Share on other sites More sharing options...
thewhitehammer99 Posted June 7, 2015 Share Posted June 7, 2015 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 Link to comment Share on other sites More sharing options...
Fireboyd78 Posted June 7, 2015 Share Posted June 7, 2015 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 Link to comment Share on other sites More sharing options...
ChOcOsKiZo Posted June 8, 2015 Share Posted June 8, 2015 (edited) 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 console modding or "online" modding ? i thought they were against "online" modding... Edited June 8, 2015 by ChOcOsKiZo Link to comment Share on other sites More sharing options...
thewhitehammer99 Posted June 8, 2015 Share Posted June 8, 2015 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 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... Link to comment Share on other sites More sharing options...
ChOcOsKiZo Posted June 8, 2015 Share Posted June 8, 2015 (edited) 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 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 June 8, 2015 by ChOcOsKiZo Link to comment Share on other sites More sharing options...
XXMV_Destroyer Posted June 8, 2015 Author Share Posted June 8, 2015 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 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now