| Property | Value |
|---|---|
| Native Name | GET_SCALEFORM_MOVIE_METHOD_RETURN_VALUE_STRING |
| Hash | 0xE1E258829A885245 |
| Return Type | char* |
| Parameters | method_return (int) |
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
method_return(int) — The return value of this native:EndScaleformMovieMethodReturn
Examples
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