TheSmart Posted August 16, 2015 Share Posted August 16, 2015 Hey guys! anybody tell me why that not working? D: Client function click(button,state) if (button == "left" and state == "up") then if (source == freeroampic) then removeEventHandler("onClientRender", root, dximage) guiSetVisible(freeroampic,false) triggerServerEvent (source, spawm, source ) showCursor(false) end end end addEventHandler("onClientGUIClick", getRootElement(), click) Server function show() spawnPlayer ( source,-2431.39, -593.59, 132, 90) end addEvent ("spawm", true ) addEventHandler ( "spawm", getRootElement(), show) Link to comment
HUNGRY:3 Posted August 16, 2015 Share Posted August 16, 2015 function click(button,state) if (button == "left" and state == "up") then if (source == freeroampic) then removeEventHandler("onClientRender", root, dximage) guiSetVisible(freeroampic,false) triggerServerEvent ("spawm",localPlayer ) showCursor(false) end end end addEventHandler("onClientGUIClick", getRootElement(), click) Link to comment
t3wz Posted August 16, 2015 Share Posted August 16, 2015 in triggerServerEvent the second parameter must be a string ("spawm"). Link to comment
TheSmart Posted August 16, 2015 Author Share Posted August 16, 2015 Thnx it working now next time i be careful Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now