Fantanic Posted March 23, 2014 Author Posted March 23, 2014 Ah , hm how can i get it working? i can create the star now but if someone hits the star he dont see anything
cheez3d Posted March 23, 2014 Posted March 23, 2014 -- SERVER SIDE addEventHandler("onPickupHit",createPickup(--[[insert the x coordinate of the pickup here]],--[[insert the y coordinate of the pickup here]],--[[insert the z coordinate of the pickup here]],3,1247),function(player) triggerClientEvent(player,"onPlayerRequestBribeGUI",player,getPlayerWantedLevel(player)) end) -- CLIENT SIDE local Bribe_GUI = {} Bribe_GUI.Window = guiCreateWindow(310,165,112,153,"Bribe",false) guiWindowSetSizable(Bribe_GUI.Window,false) Bribe_GUI[1] = guiCreateRadioButton(9, 31, 93, 15, "1 star", false, Bribe_GUI.Window) Bribe_GUI[2] = guiCreateRadioButton(10, 46, 92, 15, "2 star", false, Bribe_GUI.Window) Bribe_GUI[3] = guiCreateRadioButton(10, 61, 92, 15, "3 star", false, Bribe_GUI.Window) Bribe_GUI[4] = guiCreateRadioButton(9, 76, 93, 15, "4 star", false, Bribe_GUI.Window) Bribe_GUI[5] = guiCreateRadioButton(10, 91, 92, 15, "5 star", false, Bribe_GUI.Window) Bribe_GUI[6] = guiCreateRadioButton(10, 106, 92, 15, "6 star", false, Bribe_GUI.Window) guiSetVisible(Bribe_GUI.Window,false) addEvent("onPlayerRequestBribeGUI",true) addEventHandler("onPlayerRequestBribeGUI",root,function(wanted_level) guiSetVisible(Bribe_GUI.Window,true) guiRadioButtonSetSelected(Bribe_GUI[wanted_level],true) end)
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