drk
Members-
Posts
1,607 -
Joined
-
Last visited
Everything posted by drk
-
I agree with Soren. But I don't like v11. All DC maps sucks.
-
How to Make Gate Opened Only when Group Member are near that
drk replied to Jokeℝ1472771893's topic in Scripting
Dude, we will not create the resource for you! Learn by yourself or pay for someone create it. -
local radar = createRadarArea(-466.317, -468.559, -150, -90, 255, 255, 0, 175) local colRectangle = createColRectangle(-466.317, -468.559, -150, -90) addEventHandler ( "onColShapeHit", root, function ( element, dimension ) if ( source == colRectangle and getElementType ( element ) == "player" ) then outputChatBox ( "You entered the zone. Welcome!", element, 0, 255, 0, false ) end end ) addEventHandler ( "onColShapeLeave", root, function ( element, dimension ) if ( source == colRectangle and getElementType ( element ) == "player" ) then outputChatBox ( "You left the zone. Bye bye!", element, 0, 255, 0, false ) end end )
-
That's not "basically stealling.". This is STEAL.
-
Off-topic: Also it's a stolen image from TG
-
A map is basically a resource too.
-
E é mesmo... Os noob dos brasileiro que num gosta de estuda nem uma linguagem de programação tão faciu..
-
Server-side: changepassmarket = createMarker (273.19537, -158.01585, 0, "cylinder", 3, 255, 0, 0, 100) car1= createBlip ( 273.19537, -158.01585, 1.74052,35,2,0,0,0,0,0,180 ) function markerHit (hitPlayer, matchingDimension) if ( source == changepassmarket ) then triggerClientEvent ("viewGUI", hitPlayer) end end addEventHandler ("onMarkerHit", getRootElement(), markerHit) Client-side: GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Checkbox = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(214,198,427,231,"GUI Cambiar Pass",false) GUIEditor_Label[1] = guiCreateLabel(29,54,103,24,"Vieja Contraseña ",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],0, 0, 190) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Edit[1] = guiCreateEdit(137,51,179,26,"",false,GUIEditor_Window[1]) GUIEditor_Label[2] = guiCreateLabel(29,101,103,24,"Nueva Contraseña ",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],0,0,190) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Edit[2] = guiCreateEdit(137,92,179,26,"",false,GUIEditor_Window[1]) guiEditSetMaxLength(GUIEditor_Edit[2],10) GUIEditor_Image[1] = guiCreateStaticImage(27,178,94,42,"images/BAT.png",false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(126,175,82,45,"images/shruk.png",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(324,91,91,35,"Aceptar",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(325,49,74,35,"Cancelar",false,GUIEditor_Window[1]) GUIEditor_Checkbox[1] = guiCreateCheckBox(30,150,359,20,"Acepto Las Condiciones y Terminos de Uso de este Servidor",false,false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Checkbox[1],"default-small") GUIEditor_Label[3] = guiCreateLabel(29,54,103,24,"Old Password ",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[3],0,0,190) guiSetFont(GUIEditor_Label[3],"default-bold-small") GUIEditor_Label[4] = guiCreateLabel(29,101,103,24,"New Password ",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[4],0,0,190) guiSetFont(GUIEditor_Label[4],"default-bold-small") GUIEditor_Button[3] = guiCreateButton(325,49,74,35,"Cancel",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(324,91,91,35,"Acept",false,GUIEditor_Window[1]) GUIEditor_Checkbox[2] = guiCreateCheckBox(30,150,359,20,"I accept the conditions and terms of use of this server",false,false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Checkbox[2],"default-small") GUIEditor_Label[5] = guiCreateLabel(219,181,198,24,"GUI CopyRight 2012 (c) by ElMota",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[5],255, 255, 0) guiSetFont(GUIEditor_Label[5],"default-bold-small") guiSetVisible ( GUIEditor_Window[1], false ) addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == GUIEditor_Image[1] ) then guiSetVisible ( GUIEditor_Label[1], true ) guiSetVisible ( GUIEditor_Label[2], true ) guiSetVisible ( GUIEditor_Label[3], false ) guiSetVisible ( GUIEditor_Label[4], false ) guiSetVisible ( GUIEditor_Checkbox[1], true ) guiSetVisible ( GUIEditor_Checkbox[2], false ) guiSetVisible ( GUIEditor_Button[1], true ) guiSetVisible ( GUIEditor_Button[2], true ) guiSetVisible ( GUIEditor_Button[3], false ) guiSetVisible ( GUIEditor_Button[4], false ) elseif ( source == GUIEditor_Image[2] ) then guiSetVisible ( GUIEditor_Label[3], true ) guiSetVisible ( GUIEditor_Label[4], true ) guiSetVisible ( GUIEditor_Label[1], false ) guiSetVisible ( GUIEditor_Label[2], false ) guiSetVisible ( GUIEditor_Checkbox[2], true ) guiSetVisible ( GUIEditor_Checkbox[1], false ) guiSetVisible ( GUIEditor_Button[3], true ) guiSetVisible ( GUIEditor_Button[4], true ) guiSetVisible ( GUIEditor_Button[1], false ) guiSetVisible ( GUIEditor_Button[2], false ) elseif ( source == GUIEditor_Button[2] ) then guiSetVisible ( GUIEditor_Window[1], false ) showCursor(false) guiSetInputEnabled(false) elseif ( source == GUIEditor_Button[3] ) then guiSetVisible ( GUIEditor_Window[1], false ) showCursor(false) guiSetInputEnabled(false) end end ) addEvent ("viewGUI", true) function view () guiSetVisible (GUIEditor_Window[1], true) showCursor (true) end addEventHandler ("viewGUI", localPlayer, view)
-
My bad Copy my code again
-
Server-Side: changepassmarket = createMarker (273.19537, -158.01585, 0, "cylinder", 3, 255, 0, 0, 100) car1= createBlip ( 273.19537, -158.01585, 1.74052,35,2,0,0,0,0,0,180 ) function markerHit (hitPlayer, matchingDimension) if ( source == changepassmarket ) then triggerClientEvent ("viewGUI", hitPlayer) end end addEventHandler ("onMarkerHit", getRootElement(), markerHit) Client-Side GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Checkbox = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(214,198,427,231,"GUI Cambiar Pass",false) GUIEditor_Label[1] = guiCreateLabel(29,54,103,24,"Vieja Contraseña ",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],0, 0, 190) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Edit[1] = guiCreateEdit(137,51,179,26,"",false,GUIEditor_Window[1]) GUIEditor_Label[2] = guiCreateLabel(29,101,103,24,"Nueva Contraseña ",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],0,0,190) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Edit[2] = guiCreateEdit(137,92,179,26,"",false,GUIEditor_Window[1]) guiEditSetMaxLength(GUIEditor_Edit[2],10) GUIEditor_Image[1] = guiCreateStaticImage(27,178,94,42,"images/BAT.png",false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(126,175,82,45,"images/shruk.png",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(324,91,91,35,"Aceptar",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(325,49,74,35,"Cancelar",false,GUIEditor_Window[1]) GUIEditor_Checkbox[1] = guiCreateCheckBox(30,150,359,20,"Acepto Las Condiciones y Terminos de Uso de este Servidor",false,false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Checkbox[1],"default-small") GUIEditor_Label[3] = guiCreateLabel(29,54,103,24,"Old Password ",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[3],0,0,190) guiSetFont(GUIEditor_Label[3],"default-bold-small") GUIEditor_Label[4] = guiCreateLabel(29,101,103,24,"New Password ",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[4],0,0,190) guiSetFont(GUIEditor_Label[4],"default-bold-small") GUIEditor_Button[3] = guiCreateButton(325,49,74,35,"Cancel",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(324,91,91,35,"Acept",false,GUIEditor_Window[1]) GUIEditor_Checkbox[2] = guiCreateCheckBox(30,150,359,20,"I accept the conditions and terms of use of this server",false,false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Checkbox[2],"default-small") GUIEditor_Label[5] = guiCreateLabel(219,181,198,24,"GUI CopyRight 2012 (c) by ElMota",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[5],255, 255, 0) guiSetFont(GUIEditor_Label[5],"default-bold-small") guiSetVisible ( GUIEditor_Window[1], false ) addEvent ("viewGUI", true) function view () guiSetVisible (GUIEditor_Window[1], true) showCursor (true) end addEventHandler ("viewGUI", getRootElement(), view)
-
I'm trying this: x = guiLabelGetTextExtent(uLabel) + 0.09 local utLabel = guiCreateLabel ( x, aY, aW + w, aH, cap, aRelative, aParent ) But when I add this the text don't appear anymore, tried 0.01, 0.05 too.
-
Ok tnx Kenix. smth like that
-
idk anyway I found a function "guiLabelGetTextExtent" I will try it.
-
Not label x position, but the end of the label text position. Why tonumber? lol
-
I need get position x of a label ( pos x where the text end ). idk if it's possible. can someone help?
-
Maybe: Server-side: function getOwnedCars(accountName) local vehicles = executeSQLQuery [[ SELECT vehicleID FROM vehicles WHERE owner = '" .. accountName .. "' ]] return vehicles end addEventHandler ( "onResourceStart", root, function ( ) triggerClientEvent ( "setOwnedCars", localPlayer, getOwnedCars(getAccountName(getPlayerAccount(source))) ) end ) Client-side: addEvent ( "setOwnedCars", true ) addEventHandler ( "setOwnedCars", root, function ( carList ) for _, vehID in ipairs ( carList ) do guiGridListSetItemText ( yourGridList, row, column, tostring(vehID), false, false ) end end ) not tested. This will only get the vehicle ID from "vehicles" because you are only selecting "vehicleID" column.
-
Maybe local vehicles = executeSQLQuery [[ SELECT vehicleID FROM vehicles WHERE owner = '"..accountName.."' ]] for _, veh in ipairs ( vehicles ) do row = guiGridListAddRow ( yourGridList ) guiGridListSetItemText ( yourGridList, row, column, tostring(veh), false, false ) end ?
-
And what I'm saying? Based on CiT = Like RP / RPG = Many servers have this ideas.
-
@@rolling11 This section is for all. And if you don't like, do better, stop acting like a kid dude. DON'T LIKE? DO BETTER!!!
-
I say whatever I want dude, here we can say our opinions. Remember: It will not be you that will stop me.
