GetScaleformMovieMethodReturnValueString
Docslocal retval = GetScaleformMovieMethodReturnValueString(method_return)Description
Used to get a return value from a scaleform function. Returns a string in the same way GET_SCALEFORM_MOVIE_METHOD_RETURN_VALUE_INT returns an int.
Parameters
| Name | Type | Description |
|---|---|---|
method_return | int | The return value of this native: `EndScaleformMovieMethodReturn` |
Returns
char*Examples
Official
local a = RequestScaleformMovie("translate") --scaleform gfx
while not HasScaleformMovieLoaded(a) do
Citizen.Wait(0)
end
BeginScaleformMovieMethod(a,"EnglishToChinese") --call function
ScaleformMovieMethodAddParamPlayerNameString("Good") --input
local b = EndScaleformMovieMethodReturnValue()
while true do
if IsScaleformMovieMethodReturnValueReady(b) then
local c = GetScaleformMovieMethodReturnValueString(b) --output
print(c)
break
end
Citizen.Wait(0)
end