WWW_LIFEINVADER_COM

Scaleform to display the Lifeinvader social page in the ingame browser.


local scaleform = RequestScaleformMovie("WEB_BROWSER")
while not HasScaleformMovieLoaded(scaleform) do
	Citizen.Wait(0)
end
BeginScaleformMovieMethod(scaleform, "SET_BROWSER_SKIN")
ScaleformMovieMethodAddParamInt(3) -- SKIN ID (1 works as the multiplayer version)
EndScaleformMovieMethod()
BeginScaleformMovieMethod(scaleform, "GO_TO_WEBPAGE")
PushScaleformMovieMethodParameterString("WWW_LIFEINVADER_COM_S_PAGE1") --website name with appended "_S_PAGE1"
EndScaleformMovieMethod()

TODO: REQUEST WEBSITES BACK

BeginScaleformMovieMethod(scaleform, "INITIALISE_WEBSITE")
EndScaleformMovieMethod()
BeginScaleformMovieMethod(scaleform, "SET_DATA_SLOT_EMPTY")
EndScaleformMovieMethod()
BeginScaleformMovieMethod(scaleform, "SET_DATA_SLOT")
PushScaleformMovieMethodParameterInt(0) --data_slot_id (0 = profile box)
PushScaleformMovieMethodParameterString("Philipp Redel") -- username
PushScaleformMovieMethodParameterInt(10) --profile_image_id
PushScaleformMovieMethodParameterString("IT") -- occupation
PushScaleformMovieMethodParameterString("???") -- relationship_status
PushScaleformMovieMethodParameterInt(5) --photos_image_id
PushScaleformMovieMethodParameterInt(3) --friends_image_id
PushScaleformMovieMethodParameterInt(8) --stalking_image_id
ScaleformMovieMethodAddParamBool(false) --show_and_enable_backtoprofile_button
ScaleformMovieMethodAddParamBool(false) --enable_photos_button
ScaleformMovieMethodAddParamBool(true) --enable_friends_button
ScaleformMovieMethodAddParamBool(true) --enable_stalking_button
EndScaleformMovieMethod()
BeginScaleformMovieMethod(scaleform, "SET_DATA_SLOT")
PushScaleformMovieMethodParameterInt(1) --data_slot_id (1 = error message on error page)
PushScaleformMovieMethodParameterString("THIS IS THE ERROR MESSAGE") -- error_message
EndScaleformMovieMethod()
BeginScaleformMovieMethod(scaleform, "SET_DATA_SLOT")
PushScaleformMovieMethodParameterInt(4) --data_slot_id
PushScaleformMovieMethodParameterInt(0) --post_type (0 = left sidebar box)
PushScaleformMovieMethodParameterString("Family") -- Title
PushScaleformMovieMethodParameterString("No family on Lifeinvader") -- description
PushScaleformMovieMethodParameterInt(2) --image_id
PushScaleformMovieMethodParameterString("0") -- count_as_text
EndScaleformMovieMethod()
BeginScaleformMovieMethod(scaleform, "SET_DATA_SLOT")
PushScaleformMovieMethodParameterInt(5) --data_slot_id
PushScaleformMovieMethodParameterInt(0) --post_type (0 = left sidebar box)
PushScaleformMovieMethodParameterString("Friends") -- Title
PushScaleformMovieMethodParameterString("Roosey Moore") -- description
PushScaleformMovieMethodParameterInt(8) --image_id
PushScaleformMovieMethodParameterString("107") -- count_as_text
EndScaleformMovieMethod()
BeginScaleformMovieMethod(scaleform, "SET_DATA_SLOT")
PushScaleformMovieMethodParameterInt(6) --data_slot_id
PushScaleformMovieMethodParameterInt(0) --post_type (0 = left sidebar box)
PushScaleformMovieMethodParameterString("Stalking") -- Title
PushScaleformMovieMethodParameterString("FEUD") -- description
PushScaleformMovieMethodParameterInt(8) --image_id
PushScaleformMovieMethodParameterString("3") -- count_as_text
EndScaleformMovieMethod()
BeginScaleformMovieMethod(scaleform, "SET_DATA_SLOT")
PushScaleformMovieMethodParameterInt(7) --data_slot_id
PushScaleformMovieMethodParameterInt(3) --post_type (3 = heading in middle section)
PushScaleformMovieMethodParameterString("MESSAGES") -- Title
EndScaleformMovieMethod()
BeginScaleformMovieMethod(scaleform, "SET_DATA_SLOT")
PushScaleformMovieMethodParameterInt(8) --data_slot_id
PushScaleformMovieMethodParameterInt(1) --post_type (1 = middle section update post)
PushScaleformMovieMethodParameterString("NAME") -- username
PushScaleformMovieMethodParameterString("posted an update") -- small_text_below_username
PushScaleformMovieMethodParameterString("MESSAGE") -- post_message_can_contain_newlines
PushScaleformMovieMethodParameterInt(5) -- image_id
ScaleformMovieMethodAddParamBool(false) --is_message_clickable_or_not
EndScaleformMovieMethod()

WITHOUT THAT NO TEXT IS DISPLAYED

BeginScaleformMovieMethod(scaleform, "UPDATE_TEXT")
EndScaleformMovieMethod()