Ive been looking through some of the code from the scripts rar file in another thread to try and make some stats look a little more legit. By that i mean adding XP to match the level my account is.
I can get the current XP to appear after completing a heist but when the XP from that actually heist is added it goes back to normal. Anyone help?
The code i'm using.
[html]if managers.hud then
managers.hud:show_hint( { text = "Executed Victory!.lua" } )
end
-- Money and Level
--managers.experience:_set_current_level (82)
managers.experience:_set_xp_gained (9650321)
if managers.platform

resence() == "Playing" then
local num_winners = managers.network:game():amount_of_alive_players()
managers.network:session():send_to_peers( "mission_ended", true, num_winners )
game_state_machine:change_state_by_name( "victoryscreen", { num_winners = num_winners, personal_win = true } )
end
[/html]