EricPlayZ Posted August 16, 2018 Share Posted August 16, 2018 (edited) Oh well, I know how to do it, but I don't know how to use native functions properly. I want to use this: Function.Call(Hash.SET_ENTITY_INVINCIBLE, veh, true); while veh being defined as: Function.Call(Hash.GET_PLAYERS_LAST_VEHICLE); Although, I don't know how to define veh. I'm kinda new to C# (and kinda not, I also know some basic things :P). Edited August 16, 2018 by EricPlayZ editing the title cuz it was wrong :) Link to comment Share on other sites More sharing options...
Guest Posted August 19, 2018 Share Posted August 19, 2018 (edited) If you look on here http://www.dev-c.com/nativedb/ you will see the return type shown as Vehicle. If it says anything other than void, then you call the function like this: Vehicle veh = Function.Call<Vehicle>(Hash.GET_PLAYERS_LAST_VEHICLE); There you have veh defined. The return type is specified between the <...> Edited August 19, 2018 by Guest Link to comment Share on other sites More sharing options...
EricPlayZ Posted August 19, 2018 Author Share Posted August 19, 2018 4 hours ago, LeeC2202 said: If you look on here http://www.dev-c.com/nativedb/ you will see the return type shown as Vehicle. If it says anything other than void, then you call the function like this: Vehicle veh = Function.Call<Vehicle>(Hash.GET_PLAYERS_LAST_VEHICLE); There you have veh defined. The return type is specified between the <...> Ah, thank you, didn't notice that. Link to comment Share on other sites More sharing options...