Hello, im looking for a way to get the cfx.re or IPv4 adress server side
I am trying to make a script for a server that sends a message thru a discordwebhook when a script is started and the IPv4 or cfx.re adress is not whitelisted…
I’m just struggeling with getting the cfx.re or IPv4 adress…
If anyone knows how to get this IPv4 or cfx.re adress, leave a message 
Thanks!
GetConvar("web_baseUrl", "")
Whats that second argument supposed to be? Just empty? Because if i use GetConvar("web_baseUrl", "")
returns nothing if i print it
The second argument is whatever is returned when the convar is not found
Im not sure, but a convar needs to be assigned in the server.cfg right? And im guessing, not everyone does that…
No the convar is automatically assigned while authenticating with Nucleus, to get the remote ipv4 address just talk to a server and it will know your ipv4 address already.
What do you mean exatcly with ‘just talk to a server and it will know your ipv4 address already.’?
Just wondering, i am using the onResourceStart
event and checking the web_baseUrl
convar.
Is it printing an empty line because it did not authenticated yet because the scripts are still starting?