Jump to content

Question to dxCreateTexture


Geramy92

Recommended Posts

Posted

Hey there,

i want to create a little script for the advertisesigns in gtasa. For that script it is nessesary that the images are easy to change (the best way will be that it can change while server is running)

so the imagefile cannot be written in the meta.xml

so i have the Question:

at the function dxCreateTexture, can i use an http path for the filepath (for example http://example.com/text.png)

and if not, is there an workaround which is working??

Posted

You can use the second variant where you pass pixels instead of file path. You can use downloadFile and onClientFileDownloadComplete but these both are available in nightly at this time. If you want to do it with 1.3 then you can use fetchRemote to do the same thing but instead it's the server that downloads the file and then you can send it to clients.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...