Teto Posted September 26, 2016 Share Posted September 26, 2016 ألسلام عليكم Client Side [lua] createTeam("Criminal",252,11,11) marker1 = createMarker(1625.8000488281,-1510.5,12.60000038147,"cylinder",1,254,0,0) -- صنع ماركر function test( ) GUIEditor = { button = {}, window = {} } GUIEditor.window[1] = guiCreateWindow(342, 110, 712, 482, "(RLU)Criminal Job", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0505") GUIEditor.button[1] = guiCreateButton(9, 413, 143, 59, "Get the Job !", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(705, 417, 0, 15, "", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(704, 417, 0, 15, "", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(572, 410, 131, 62, "Exit", false, GUIEditor.window[1]) showCursor ( true ) end addEventHandler("onClientMarkerHit",marker1,test) function buttonClose() if ( source == GUIEditor.button[4] ) then guiSetVisible ( GUIEditor.window[1] , false ) showCursor( false ) guiSetInputEnabled ( false ) end end function buttonOpen( player ) if ( source == GUIEditor.button[1] ) then guiSetVisible ( GUIEditor.window[1] , false ) guiSetInputEnabled ( false ) showCursor( false ) triggerServerEvent("Team",localPlayer) end -- برمجه للشخصيه thePed = createPed(0,1625.80774, -1509.70374, 13.59852,180) function cancelPedDamage() cancelEvent() -- Cancels the onClientPedDamage event end addEventHandler("onClientPedDamage", thePed ,cancelEvent())[/lua] Server side [lua] addEvent('Team',true) addEventHandler('Team',root, function () setElementData(source, "Occupation", "Criminal", true) end[/lua] meta.xml [lua]<meta> <script src="c.lua" type="client" /> </meta>[/lua] Link to comment
iMr ~ MnHmAr Posted September 26, 2016 Share Posted September 26, 2016 createTeam("Criminal",252,11,11) marker1 = createMarker(1625.8000488281,-1510.5,12.60000038147,"cylinder",1,254,0,0) -- صنع ماركر function test( ) GUIEditor = { button = {}, window = {} } GUIEditor.window[1] = guiCreateWindow(342, 110, 712, 482, "(RLU)Criminal Job", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0505") GUIEditor.button[1] = guiCreateButton(9, 413, 143, 59, "Get the Job !", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(705, 417, 0, 15, "", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(704, 417, 0, 15, "", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(572, 410, 131, 62, "Exit", false, GUIEditor.window[1]) showCursor ( true ) end addEventHandler("onClientMarkerHit",marker1,test) function buttonClose() if ( source == GUIEditor.button[4] ) then guiSetVisible ( GUIEditor.window[1] , false ) showCursor( false ) guiSetInputEnabled ( false ) end end function buttonOpen( player ) if ( source == GUIEditor.button[1] ) then guiSetVisible ( GUIEditor.window[1] , false ) guiSetInputEnabled ( false ) showCursor( false ) triggerServerEvent("Team",localPlayer) end thePed = createPed(0,1625.80774, -1509.70374, 13.59852,180) function cancelPedDamage() end addEventHandler("onClientPedDamage", thePed ,cancelEvent()) بدل الكلنت ب ذا Link to comment
mahmod3 Posted September 26, 2016 Share Posted September 26, 2016 3 hours ago, Teto said: ألسلام عليكم Client Side [lua] createTeam("Criminal",252,11,11) marker1 = createMarker(1625.8000488281,-1510.5,12.60000038147,"cylinder",1,254,0,0) -- صنع ماركر function test( ) GUIEditor = { button = {}, window = {} } GUIEditor.window[1] = guiCreateWindow(342, 110, 712, 482, "(RLU)Criminal Job", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0505") GUIEditor.button[1] = guiCreateButton(9, 413, 143, 59, "Get the Job !", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(705, 417, 0, 15, "", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(704, 417, 0, 15, "", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(572, 410, 131, 62, "Exit", false, GUIEditor.window[1]) showCursor ( true ) end addEventHandler("onClientMarkerHit",marker1,test) function buttonClose() if ( source == GUIEditor.button[4] ) then guiSetVisible ( GUIEditor.window[1] , false ) showCursor( false ) guiSetInputEnabled ( false ) end end function buttonOpen( player ) if ( source == GUIEditor.button[1] ) then guiSetVisible ( GUIEditor.window[1] , false ) guiSetInputEnabled ( false ) showCursor( false ) triggerServerEvent("Team",localPlayer) end -- برمجه للشخصيه thePed = createPed(0,1625.80774, -1509.70374, 13.59852,180) function cancelPedDamage() cancelEvent() -- Cancels the onClientPedDamage event end addEventHandler("onClientPedDamage", thePed ,cancelEvent())[/lua] Server side [lua] addEvent('Team',true) addEventHandler('Team',root, function () setElementData(source, "Occupation", "Criminal", true) end[/lua] meta.xml [lua]<meta> <script src="c.lua" type="client" /> </meta>[/lua] وش تبي بزبط ؟ Link to comment
iPrestege Posted September 26, 2016 Share Posted September 26, 2016 (edited) Client : GUIEditor = { button = {}, window = {} } local thePed = createPed ( 0,1625.80774,-1509.70374,13.59852,180 ) setElementFrozen( thePed,true ) local marker1 = createMarker ( 1625.8000488281,-1510.5,12.60000038147,'cylinder',1,254,0,0 ) GUIEditor.window[1] = guiCreateWindow ( 342,110,712,482,'(RLU)Criminal Job',false ) guiSetVisible( GUIEditor.window[1],false ) guiWindowSetSizable ( GUIEditor.window[1], false ) guiSetProperty ( GUIEditor.window[1],'CaptionColour','FFFF0505' ) GUIEditor.button[1] = guiCreateButton ( 9,413,143,59,'Get the Job !',false,GUIEditor.window[1] ) GUIEditor.button[2] = guiCreateButton ( 705,417,0,15,'',false,GUIEditor.window[1] ) GUIEditor.button[3] = guiCreateButton ( 704,417,0,15,'',false,GUIEditor.window[1] ) GUIEditor.button[4] = guiCreateButton ( 572,410,131,62,'Exit',false,GUIEditor.window[1] ) addEventHandler( 'onClientGUIClick',root, function ( ) if ( source == GUIEditor.button[1] ) then guiSetVisible ( GUIEditor.window[1] , false ) guiSetInputEnabled ( false ) showCursor( false ) triggerServerEvent ( 'Team',localPlayer ) elseif ( source == GUIEditor.button[4] ) then guiSetVisible ( GUIEditor.window[1] , false ) showCursor ( false ) guiSetInputEnabled ( false ) end end ) addEventHandler ( 'onClientMarkerHit',marker1, function ( hitElement ) if ( hitElement and getElementType ( hitElement ) == 'player' ) then if isPedInVehicle ( hitElement ) then return outputChatBox ( 'Exit from the vehicle!',255,0,0 ) end guiSetVisible( GUIEditor.window[1],true ) showCursor( true ) guiSetInputEnabled ( true ) end end ) addEventHandler ( 'onClientPedDamage',thePed,cancelEvent ) Server : local Criminal = createTeam ( 'Criminal',252,11,11 ) addEvent( 'Team',true ) addEventHandler ( 'Team',root, function ( ) if getPlayerTeam ( source ) == Criminal then return outputChatBox( 'You are already in criminal job!',source,255,0,0 ) end setPlayerTeam ( source,Criminal ) outputChatBox ( 'You Have now joined criminal job!',source,0,255,0 ) end ) Edited September 26, 2016 by Mr.Pres[T]ege Add a freeze for the ped :p 1 Link to comment
Teto Posted September 27, 2016 Author Share Posted September 27, 2016 4 hours ago, Mr.Pres[T]ege said: Client : GUIEditor = { button = {}, window = {} } local thePed = createPed ( 0,1625.80774,-1509.70374,13.59852,180 ) setElementFrozen( thePed,true ) local marker1 = createMarker ( 1625.8000488281,-1510.5,12.60000038147,'cylinder',1,254,0,0 ) GUIEditor.window[1] = guiCreateWindow ( 342,110,712,482,'(RLU)Criminal Job',false ) guiSetVisible( GUIEditor.window[1],false ) guiWindowSetSizable ( GUIEditor.window[1], false ) guiSetProperty ( GUIEditor.window[1],'CaptionColour','FFFF0505' ) GUIEditor.button[1] = guiCreateButton ( 9,413,143,59,'Get the Job !',false,GUIEditor.window[1] ) GUIEditor.button[2] = guiCreateButton ( 705,417,0,15,'',false,GUIEditor.window[1] ) GUIEditor.button[3] = guiCreateButton ( 704,417,0,15,'',false,GUIEditor.window[1] ) GUIEditor.button[4] = guiCreateButton ( 572,410,131,62,'Exit',false,GUIEditor.window[1] ) addEventHandler( 'onClientGUIClick',root, function ( ) if ( source == GUIEditor.button[1] ) then guiSetVisible ( GUIEditor.window[1] , false ) guiSetInputEnabled ( false ) showCursor( false ) triggerServerEvent ( 'Team',localPlayer ) elseif ( source == GUIEditor.button[4] ) then guiSetVisible ( GUIEditor.window[1] , false ) showCursor ( false ) guiSetInputEnabled ( false ) end end ) addEventHandler ( 'onClientMarkerHit',marker1, function ( hitElement ) if ( hitElement and getElementType ( hitElement ) == 'player' ) then if isPedInVehicle ( hitElement ) then return outputChatBox ( 'Exit from the vehicle!',255,0,0 ) end guiSetVisible( GUIEditor.window[1],true ) showCursor( true ) guiSetInputEnabled ( true ) end end ) addEventHandler ( 'onClientPedDamage',thePed,cancelEvent ) Server : local Criminal = createTeam ( 'Criminal',252,11,11 ) addEvent( 'Team',true ) addEventHandler ( 'Team',root, function ( ) if getPlayerTeam ( source ) == Criminal then return outputChatBox( 'You are already in criminal job!',source,255,0,0 ) end setPlayerTeam ( source,Criminal ) outputChatBox ( 'You Have now joined criminal job!',source,0,255,0 ) end ) شكرا Link to comment
</Mr.Tn6eL> Posted September 28, 2016 Share Posted September 28, 2016 كذا بيفتح لجميع الاعبين اللي عندهم تحميل addEventHandler ( 'onClientMarkerHit',marker1, function ( hitElement ) if ( hitElement and getElementType ( hitElement ) == 'player' ) then if isPedInVehicle ( hitElement ) then return outputChatBox ( 'Exit from the vehicle!',255,0,0 ) end guiSetVisible( GUIEditor.window[1],true ) showCursor( true ) guiSetInputEnabled ( true ) end end ) يصير كذا addEventHandler ( 'onClientMarkerHit',marker1, function ( hitElement ) if ( hitElement == localPlayer) then if isPedInVehicle ( hitElement ) then return outputChatBox ( 'Exit from the vehicle!',255,0,0 ) end guiSetVisible( GUIEditor.window[1],true ) showCursor( true ) guiSetInputEnabled ( true ) end end ) 1 Link to comment
</Mr.Tn6eL> Posted September 28, 2016 Share Posted September 28, 2016 أقصد اللي ماعندهم تحميل 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