How to use scaleforms!

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

Neat thing alert!

I got my hands on some decompiled gta 5 scripts and found one called scaleformtest, turns out its a script that uses instructional buttons, so i decided to convert it and with a few tweaks i got it looking like this :smiley: :

Code:

https://gist.github.com/IllusiveTea/c9e33f678586b02f68315c7ca3ceec33

should be pretty self explanatory in what it does :stuck_out_tongue:

4 Likes

Nice :slight_smile: How do you put scaleform on an object ?

2 Likes

how to scaleform something for every user? because made script for weazelnews, but only the one who is sending the wazlenews see it.

thanks in advance

Trigger an event to every client?

could you give us the function? would be great !


Already

yea already tried it, but doesn’t go to the advertisements boards

1 Like

Youll need to draw it 3D

Can you please share the code?
DrawScaleformMovie_3d takes roughly 9000 parameters, and what in the smurf does “float p8” do? O.o