How to use scaleforms!

This is actually what I came up to and this is actually it. I am happy, thank you.

I will update my code when I get home to what havoc did :stuck_out_tongue:

Also, share your findings and cool scaleforms! This is a goldmine.

I’m sure he’ll update it on there as well :wink:

Sure, I hope. But there’s “he”, and there’s “us”, as a community.
I hope :wink:

If anyone ever gets the MISSION_COMPLETE stuff looking nicer than what I tried here, please share.
For anyone trying to figure out the phone scaleform, thersy’s done some amazing work and there’s a topic on GTAForums as well.

Let me also plug Supa’s gfx wrapper, similar to the C# api for gfx.

Holy, the lord himself has spoken. But I definitely will check that out, as I’ve seen it before and it definitely has some really neat uses. If I ever get it working it will definitely be on my page :smile:

1 Like

Alibaba cave’s here :https://github.com/FiveM-Scripts/scaleform-docs

1 Like

A list of scaleforms can be found here, instead of looking through the folders:

http://scaleform.devtesting.pizza

thanks to @Vespura

1 Like

Hello guys !

I try different way but i can’t stop display the scaleform, do you have any idea please ?

Citizen.CreateThread(function()
    	function drawscaleform(scaleform)
        	scaleform = RequestScaleformMovie(scaleform)
        	while not HasScaleformMovieLoaded(scaleform) do
            	Citizen.Wait(0)
        	end
        		PushScaleformMovieFunction(scaleform, "SHOW_WASTED_MP_MESSAGE")
        		PushScaleformMovieFunctionParameterString("NEXT MISSION ?")
        		PushScaleformMovieFunctionParameterString("ARE YOU SURE ?")
        		PopScaleformMovieFunctionVoid()

        		DrawScaleformMovieFullscreen(scaleform, 255, 255, 255, 255, 0)
    		end
    	    while true do
            Citizen.Wait(0)
            drawscaleform("mp_big_message_freemode")
    	    end
       end)
end)

Because you’re using while true do Which is an infinite loop

I’m so low ! Thanks you

image

7 Likes

@Disquse :open_mouth: Which one is that

1 Like

mugshot_board_01 with SET_BOARD function

1 Like

How correctly use DRAW_SCALEFORM_MOVIE_3D https://runtime.fivem.net/doc/reference.html#_0x87D51D72255D4E78
Alway return error with Nil value. I expect what this Native will draw scaleform on map, am i right?

I got it to work, kinda, it was a pain in the ass and even at that i didnt get it working exactly how i wanted it, so not sure about that

Hmm, can u show how u did it?

I dont have the resource anymore, just wrote over it long ago.

Bro thats amazing, I’m just now learning about scaleforms, please share that billboard? I could see so many opportunities with it