Hi there, I’ve been lurking for a while but decided to finally make a post as I’m fairly stuck.
The goal in the end is to send the current player’s SteamID back to the client, but for now I’m just trying to send the client a message to simplify things. Here is what I have so far:
Client:

Server:
Error:
I have tested this method without involving the Player object and it works fine. I’m able to trigger a server event, pass an argument such as a string or an integer, then have the server function trigger a client event sending a message back to the player with the string or integer sent along originally. For some reason, I can’t seem to get the Player object over to the server. You can see that the Player object isn’t null as I’m able to return the name and object itself in the log prior to triggering the server event.
Does anyone have an idea of where I’m going wrong with this? Thanks in advance!
d0p3t
2
Don’t send the player object with it. The [FromSource] attribute is a Player object that gets automatically propagated.
TriggerServerEvent("apex_jobs:getSteamId");
Other code looks fine
1 Like
That did it. I really appreciate it!