Im trying to get data out from a servercallback
but if Ill try to do it, it report nothing.
this is an example, the script will return *
how can i “fix” that?
Not much information, but it does look nice
esx callbacks are async and should be treated as such.
If you’re getting no client side or server side errors, chances are it is returning data. However, as your Items:AddButton is not contained within the callback, it’s running way to quick to allow the server time to ‘callback’ the requested data. Hence, ‘string’ will be nil when it runs as string hasn’t been initialized as of yet. Try moving that whole block to inside the callback, making it only run once the server has returned the requested data.
https://esx-framework.github.io/es_extended/client/functions/triggerservercallback/
Edit: If you don’t understand what async is, give this a read…
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.