-
Posts
244 -
Joined
-
Last visited
Everything posted by Alpha
-
https://community.multitheftauto.com/index.php?p= ... ils&id=222
-
Do you have any problems with it?
-
That will just force the scrollbars on or off. I guess there is no way to do that.
-
You could use guiGridListSetSelectedItem along with guiGridListGetRowCount to select the last item, which would also scroll the bar down.
-
Not really, the problem is that the resource doesn't have access to getClientIP, so he must add it to the admin group in acl.xml.
-
It does if it will be executed right after making the function, but in this case, you will first use the command /ayuda, then the GUI will be created. So there won't be a problem doing this. Another way of doing this would be: cerrar = guiCreateWindow (0,0,0.5,0.4,"Ayuda",true) boton = guiCreateButton (0,0,3,3,"x",true,cerrar) guiSetVisible(cerrar, false) function VentanaAyuda() guiSetVisible(cerrar,true) showCursor(true) end addCommandHandler ("ayuda", VentanaAyuda) function cerrarx() guiSetVisible(cerrar,false) showCursor(false) end addEventHandler( "onClientGUIClick",boton,cerrarx, false)
-
Add the resource to the admin group in acl. <object name = "resource.countryid"/> Post your whole acl.xml file if you don't know how to add it.
-
function VentanaAyuda() cerrar = guiCreateWindow (0,0,0.5,0.4,"Ayuda",true) boton = guiCreateButton (0,0,3,3,"x",true,cerrar) guiSetVisible(cerrar,true) showCursor(true) addEventHandler( "onClientGUIClick",boton,cerrarx, false) end function cerrarx() guiSetVisible(cerrar,false) showCursor(false) end addCommandHandler ("ayuda", VentanaAyuda)
-
if not getAccountData(acc,"onHaveGunLicense") or tonumber(getAccountData(acc,"onHaveGunLicense")) ~= 1 then This if statement checks if he doesn't have a license, so it should be: Server: --serverSide local acc = getPlayerAccount(source) if not getAccountData(acc,"onHaveGunLicense") or tonumber(getAccountData(acc,"onHaveGunLicense")) ~= 1 then triggerClientEvent('onHaveGunLicense', source) else outputChatBox('You Already Have GunLicense',source,255,255,0) end
-
I don't recommend using XML for saving, afaik it eats up a lot of memory. You can use account data or SQLite.
-
Your double check is wrong, you have to getAccountData again for the second check: local acc = getPlayerAccount(source) if not getAccountData(acc,"onHaveGunLicense") or tonumber(getAccountData(acc,"onHaveGunLicense")) ~= 1 then --code end
-
English only, talk in your language subforum.
-
I didn't just copy your code, it had a major bug, check again. Here: door = createObject(8948,-597.79998779297,-476.89999389648,26.299999237061,0,0,0) colShape = createColRectangle(-593.90002441406,-476.79998779297,3,-5) addEventHandler("onColShapeHit",colShape,function(hitElement) if(getElementType(hitElement)=="player"or getElementType(hitElement)=="vehicle")then if(getElementModel(hitElement)==124 or getElementModel(hitElement)==125 or getElementModel(hitElement)==126 or getElementModel(hitElement)==163 or getElementModel(hitElement)==164 or getElementModel(hitElement)==292 or getElementModel(hitElement)==293 or getElementModel(hitElement)==294)then moveObject(door,-597.79998779297,-476.89999389648,22.700000762939,0,0,0) outputChatBox("Welcome "..getPlayerName(hitElement),hitElement) end end end) addEventHandler("onColShapeLeave",colShape,function(hitElement) if(getElementType(hitElement)=="player"or getElementType(hitElement)=="vehicle")then if(getElementModel(hitElement)==124 or getElementModel(hitElement)==125 or getElementModel(hitElement)==126 or getElementModel(hitElement)==163 or getElementModel(hitElement)==164 or getElementModel(hitElement)==292 or getElementModel(hitElement)==293 or getElementModel(hitElement)==294)then moveObject(door,-597.79998779297,-476.89999389648,26.299999237061,0,0,0) outputChatBox("Cya "..getPlayerName(hitElement),hitElement) end end end)
-
Try: door = createObject(8948,-597.79998779297,-476.89999389648,26.299999237061,0,0,0) colShape = createColRectangle(-593.90002441406,-476.79998779297,3,-5) addEventHandler("onColShapeHit",colshape,function(hitElement) if(getElementType(hitElement)=="player"or getElementType(hitElement)=="vehicle")then if(getElementModel(hitElement)==124 or getElementModel(hitElement)==125 or getElementModel(hitElement)==126 or getElementModel(hitElement)==163 or getElementModel(hitElement)==164 or getElementModel(hitElement)==292 or getElementModel(hitElement)==293 or getElementModel(hitElement)==294)then moveObject(door,-597.79998779297,-476.89999389648,22.700000762939,0,0,0) outputChatBox("Welcome "..getPlayerName(hitElement),hitElement) end end end) addEventHandler("onColShapeLeave",colshape,function(hitElement) if(getElementType(hitElement)=="player"or getElementType(hitElement)=="vehicle")then if(getElementModel(hitElement)==124 or getElementModel(hitElement)==125 or getElementModel(hitElement)==126 or getElementModel(hitElement)==163 or getElementModel(hitElement)==164 or getElementModel(hitElement)==292 or getElementModel(hitElement)==293 or getElementModel(hitElement)==294)then moveObject(door,-597.79998779297,-476.89999389648,26.299999237061,0,0,0) outputChatBox("Cya "..getPlayerName(hitElement),hitElement) end end end)
-
Hell no. A lot of players change their name daily.
-
I think developers are already busy enough.
-
It already shows you the script file.
-
What are you expecting us to do? It's easy now to get a copy of vG.
-
addEventHandler ("onPlayerJoin", root, function() local decoration = "================================================" outputChatBox(decoration , source, 38, 98, 188, true) outputChatBox("#ffffffWelcome to #2662bc=(RfC)= #ffffffserver", source, 38, 98, 188, true) outputChatBox("#ffffffDon't forgot to visit our webiste!", source, 38, 98, 188, true) outputChatBox("#848484www.website.eu", source, 38, 98, 188, true) outputChatBox(decoration, source, 38, 98, 188, true) end)
-
-- Camionero -- marcador = createMarker (168.55726623535,-15.098962783813,1.578125,"cylinder",2,0,200,0,90) function camionero (hitPlayer) setPlayerNametagColor (hitPlayer, 0, 200, 0) setElementModel (hitPlayer, 161) setPlayerTeam (hitPlayer, teamtrucker) end addEventHandler ("onMarkerHit",marcador,camionero) -- Prevent spawn spam and make a unique vehicle -- function uniqueveh ( hitPlayer) local vehiculo = getPedOccupiedVehicle ( hitPlayer) if ( not vehiculo ) then local x, y, z = getElementPosition (hitPlayer) linerunner = createVehicle ( 609, x, y, z) warpPedIntoVehicle (hitPlayer,linerunner) else setTimer (outputChatBox,1000,1, "ya estas dentro de un vehiculo!", hitPlayer) end end addEventHandler ("onMarkerHit",marcador,uniqueveh)