micheal1230 Posted June 7, 2012 Share Posted June 7, 2012 Well The Pickup Aint Showing Server: local pickup = createPickup(361.162109375, 171.3984375, 1008.3828125, 3, 1239, 0.1) setElementDimension(pickup, 2) setElementInterior(pickup, 3) addEventHandler("onPickupHit", pickup, function () triggerClientEvent ( "show", getRootElement(), player ) end ) Client: local changenameped = createPed(57,359.1533203125, 172.3720703125, 1008.3828125) setPedRotation(changenameped, 267) setElementDimension(changenameped, 2) setElementInterior(changenameped, 3) setElementData(changenameped, "name", "Joe Micheals") setElementFrozen(changenameped, true) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Window1 = guiCreateWindow(568,320,209,113,"Change Name Form",false) GUIEditor_Label1 = guiCreateLabel(29,29,157,24,"Format: Firstname_Lastname",false,GUIEditor_Window1) guiLabelSetColor(GUIEditor_Label1,255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label1,"top") guiLabelSetHorizontalAlign(GUIEditor_Label1,"left",false) GUIEditor_Edit1 = guiCreateEdit(29,50,155,18,"",false,GUIEditor_Window11) GUIEditor_Button1 = guiCreateButton(61,82,83,21,"Change Name",false,GUIEditor_Window1) function hidename() guiSetVisible(GUIEditor_Window1, false) guiSetVisible(GUIEditor_Label1, false) guiSetVisible(GUIEditor_Edit1, false) guiSetVisible(GUIEditor_Button1, false) showCursor ( false ) end addEventHandler( "onClientResourceStart", getRootElement( ), hidename) addEvent("show", true) addEventHandler( "show", getRootElement(), function () guiSetVisible(GUIEditor_Window1, true) guiSetVisible(GUIEditor_Label1, true) guiSetVisible(GUIEditor_Edit1, true) guiSetVisible(GUIEditor_Button1, true) showCursor ( true ) end ) Link to comment
50p Posted June 7, 2012 Share Posted June 7, 2012 How do you get to dimension 2 and interior 3? Can you see the ped? You must have some sort of "teleport", don't you? Link to comment
micheal1230 Posted June 8, 2012 Author Share Posted June 8, 2012 How do you get to dimension 2 and interior 3? Can you see the ped? You must have some sort of "teleport", don't you? Teleport Link to comment
micheal1230 Posted June 8, 2012 Author Share Posted June 8, 2012 How do you get to dimension 2 and interior 3? Can you see the ped? You must have some sort of "teleport", don't you? Teleport Guess I Will Have To Fix It Myself Link to comment
50p Posted June 8, 2012 Share Posted June 8, 2012 I never advice to create elements outside events. Try to create it in onResourceStart instead. Link to comment
micheal1230 Posted June 8, 2012 Author Share Posted June 8, 2012 I never advice to create elements outside events. Try to create it in onResourceStart instead. Nevermind im just stupid and didnt put server.lua in the meta 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