-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
You can't, he's showing how does his server look.
-
Download this, and try it. http://www.mediafire.com/?yx4kv93n2kdcj82
-
Of course, else it wouldn't make any sense.
-
Pues, no se que recurso(s) usa(s), algunos crean las tablas solos, pero tienes que crear la database primero. bajate un programa llamado, "xampp".
-
Hmmmmm, so, you want to click on an avatar from your gridlist and then draw it on player's head? if so, make a global variable like: avatar = nil and then change it when you click, like avatar = "myAvatar.png" and then you just draw it using "avatar" variable.
-
1024 * 768 is my resolution, and the other stuff is the size, position.
-
Works fine here, but, i'm using Windows as Os for the server. I don't get kicked anymore when they hit me, maybe 1.0.5 solved that.
-
myResources = {"admin", "scoreboard", "killmessages"} function stopResources() for i,v in pairs(myResources) do local resource = getResourceFromName(tostring(v)) if ( getResourceState(resource) == "running" ) and ( resource ~= getThisResource() ) then stopResource(resource) end end end addCommandHandler("stopresources",stopResources) Do you mean that?
-
Hi there, i had this problem some weeks ago, but with help of the forums i've solved it, i'm using this code to make it perfect on every resolution. x,y = guiGetScreenSize() guiCreateProgressBar((750/1024)*x, (170/768)*y, (232/1024)*x, (40/768)*y,false) This will create a progress bar under "money" in the normal GTA HUD.
-
I don't understand what do you want to do...
-
You don't know how to use Tables? would be pretty easy o,o myObjects = {} number = 0 for i,v in pairs(myObjects) do number = number +1 end myObjects[number] = createObject() Should work.
-
Well, you could create a vehicle and then set an element data on it, like "Owner", "Solidsnake14", and then when he tryies to enter the vehicle, if the account name is equal to "Owner" data from the vehicle, he will able to drive it, else it will output some message. functions required for this: createVehicle setElementData getElementData getPlayerAccount getAccountName getAccountData cancelEvent() - Required to cancel the player from entering the vehicle. events required for this: onVehicleStartEnter Good luck.
-
Another car mod: https://community.multitheftauto.com/index.php?p= ... ls&id=1962 Edit: Two more car mods https://community.multitheftauto.com/ind ... ls&id=1965 https://community.multitheftauto.com/ind ... ls&id=1963 Edit2: Another stolen resource: https://community.multitheftauto.com/index.php?p= ... ls&id=1967
-
There aren't any topic to request stuff, you could learn by yourself anyway
-
Are you kidding me...? if you think this is a forum to request stuff, you are wrong! We don't accept any kind of request, start learning how to do it by yourself!
-
Good job. already updated it with latest
-
Your acl.xml is wrong, try using this one. <acl> <group name="Everyone"> <acl name="Default" /> <object name="user.*" /> </group> <group name="Moderator"> <acl name="Moderator" /> <object name="resource.mapcycler" /> <object name="resource.mapmanager" /> <object name="resource.resourcemanager" /> <object name="resource.votemanager" /> </group> <group name="SuperModerator"> <acl name="Moderator" /> <acl name="SuperModerator" /> </group> <group name="Admin"> <acl name="Moderator" /> <acl name="SuperModerator" /> <acl name="Admin" /> <acl name="RPC" /> <object name="resource.admin" /> <object name="resource.race" /> <object name="user.Solidsnake14" /> </group> <group name="Console"> <acl name="Moderator" /> <acl name="SuperModerator" /> <acl name="Admin" /> <acl name="RPC" /> <object name="user.Console" /> </group> <group name="RPC"> <acl name="RPC" /> </group> <group name="MapEditor"> <acl name="MapEditor" /> <object name="resource.editor_main" /> <object name="resource.edf" /> </group> <group name="OutRPCGroup"> <object name="resource.web" /> </group> <group name="InRPCGroup"> <object name="user.http_guest" /> </group> <acl name="Default"> <right name="general.ModifyOtherObjects" access="false" /> <right name="general.http" access="false" /> <right name="command.start" access="false" /> <right name="command.stop" access="false" /> <right name="command.stopall" access="false" /> <right name="command.gamemode" access="false" /> <right name="command.changemode" access="false" /> <right name="command.changemap" access="false" /> <right name="command.stopmode" access="false" /> <right name="command.stopmap" access="false" /> <right name="command.skipmap" access="false" /> <right name="command.restart" access="false" /> <right name="command.refresh" access="false" /> <right name="command.addaccount" access="false" /> <right name="command.delaccount" access="false" /> <right name="command.debugscript" access="false" /> <right name="command.chgpass" access="false" /> <right name="command.mute" access="false" /> <right name="command.unmute" access="false" /> <right name="command.kick" access="false" /> <right name="command.ban" access="false" /> <right name="command.banip" access="false" /> <right name="command.unbanip" access="false" /> <right name="command.shutdown" access="false" /> <right name="command.install" access="false" /> <right name="command.aexec" access="false" /> <right name="command.whois" access="false" /> <right name="command.whowas" access="false" /> <right name="function.executeCommandHandler" access="true" /> <right name="function.setPlayerMuted" access="false" /> <right name="function.addAccount" access="false" /> <right name="function.removeAccount" access="false" /> <right name="function.setAccountPassword" access="false" /> <right name="function.kickPlayer" access="true" /> <right name="function.banIP" access="false" /> <right name="function.banPlayer" access="false" /> <right name="function.banSerial" access="false" /> <right name="function.getBansXML" access="false" /> <right name="function.unbanIP" access="false" /> <right name="function.unbanSerial" access="false" /> <right name="function.getClientIP" access="false" /> <right name="function.setServerPassword" access="false" /> <right name="function.getServerPassword" access="false" /> <right name="function.callRemote" access="false" /> <right name="function.startResource" access="false" /> <right name="function.stopResource" access="false" /> <right name="function.restartResource" access="false" /> <right name="function.createResource" access="false" /> <right name="function.copyResource" access="false" /> <right name="function.addResourceMap" access="false" /> <right name="function.addResourceConfig" access="false" /> <right name="function.removeResourceFile" access="false" /> <right name="function.setResourceDefaultSetting" access="false" /> <right name="function.removeResourceDefaultSetting" access="false" /> <right name="function.aclReload" access="false" /> <right name="function.aclSave" access="false" /> <right name="function.aclCreate" access="false" /> <right name="function.aclDestroy" access="false" /> <right name="function.aclSetRight" access="false" /> <right name="function.aclRemoveRight" access="false" /> <right name="function.aclCreateGroup" access="false" /> <right name="function.aclDestroyGroup" access="false" /> <right name="function.aclGroupAddACL" access="false" /> <right name="function.aclGroupRemoveACL" access="false" /> <right name="function.aclGroupAddObject" access="false" /> <right name="function.aclGroupRemoveObject" access="false" /> <right name="general.adminpanel" access="false" /> <right name="general.tab_players" access="false" /> <right name="general.tab_resources" access="false" /> <right name="general.tab_server" access="false" /> <right name="general.tab_bans" access="false" /> <right name="general.tab_adminchat" access="false" /> <right name="command.freeze" access="false" /> <right name="command.shout" access="false" /> <right name="command.spectate" access="false" /> <right name="command.slap" access="false" /> <right name="command.setgroup" access="false" /> <right name="command.sethealth" access="false" /> <right name="command.setarmour" access="false" /> <right name="command.setmoney" access="false" /> <right name="command.setskin" access="false" /> <right name="command.setteam" access="false" /> <right name="command.giveweapon" access="false" /> <right name="command.setstat" access="false" /> <right name="command.jetpack" access="false" /> <right name="command.warp" access="false" /> <right name="command.setdimension" access="false" /> <right name="command.setinterior" access="false" /> <right name="command.givevehicle" access="false" /> <right name="command.repair" access="false" /> <right name="command.blow" access="false" /> <right name="command.destroy" access="false" /> <right name="command.customize" access="false" /> <right name="command.setcolor" access="false" /> <right name="command.setpaintjob" access="false" /> <right name="command.listmessages" access="false" /> <right name="command.readmessage" access="false" /> <right name="command.listresources" access="false" /> <right name="command.execute" access="false" /> <right name="command.setpassword" access="false" /> <right name="command.setwelcome" access="false" /> <right name="command.setgame" access="false" /> <right name="command.setmap" access="false" /> <right name="command.setweather" access="false" /> <right name="command.blendweather" access="false" /> <right name="command.setblurlevel" access="false" /> <right name="command.setwaveheight" access="false" /> <right name="command.setskygradient" access="false" /> <right name="command.setgamespeed" access="false" /> <right name="command.setgravity" access="false" /> <right name="command.settime" access="false" /> <right name="command.unban" access="false" /> <right name="command.banserial" access="false" /> <right name="command.unbanserial" access="false" /> <right name="command.listbans" access="false" /> <right name="function.Superman" access="false" /> <right name="general.tab_maps" access="false" /> <right name="general.webpanel_player" access="true" /> <right name="general.webpanel_chat" access="true" /> <right name="general.webpanel_stats" access="true" /> <right name="resource.webchat" access="true" /> </acl> <acl name="Moderator"> <right name="general.ModifyOtherObjects" access="false" /> <right name="command.start" access="true" /> <right name="command.stop" access="true" /> <right name="command.stopall" access="true" /> <right name="command.gamemode" access="true" /> <right name="command.changemode" access="true" /> <right name="command.changemap" access="true" /> <right name="command.stopmode" access="true" /> <right name="command.stopmap" access="true" /> <right name="command.skipmap" access="true" /> <right name="command.restart" access="true" /> <right name="command.mute" access="true" /> <right name="command.unmute" access="true" /> <right name="command.kick" access="true" /> <right name="command.ban" access="true" /> <right name="command.banip" access="true" /> <right name="command.unbanip" access="true" /> <right name="command.whois" access="true" /> <right name="command.whowas" access="true" /> <right name="function.setPlayerMuted" access="true" /> <right name="function.kickPlayer" access="true" /> <right name="function.banIP" access="true" /> <right name="function.banPlayer" access="true" /> <right name="function.banSerial" access="true" /> <right name="function.getBansXML" access="true" /> <right name="function.unbanIP" access="true" /> <right name="function.unbanSerial" access="true" /> <right name="function.getClientIP" access="true" /> <right name="function.startResource" access="true" /> <right name="function.stopResource" access="true" /> <right name="function.restartResource" access="true" /> <right name="general.adminpanel" access="true" /> <right name="general.tab_players" access="true" /> <right name="general.tab_resources" access="false" /> <right name="general.tab_server" access="true" /> <right name="general.tab_bans" access="false" /> <right name="general.tab_adminchat" access="true" /> <right name="command.freeze" access="true" /> <right name="command.shout" access="true" /> <right name="command.spectate" access="true" /> <right name="command.slap" access="true" /> <right name="command.setgroup" access="false" /> <right name="command.sethealth" access="true" /> <right name="command.setarmour" access="true" /> <right name="command.setmoney" access="false" /> <right name="command.setskin" access="true" /> <right name="command.setteam" access="true" /> <right name="command.giveweapon" access="true" /> <right name="command.setstat" access="true" /> <right name="command.jetpack" access="true" /> <right name="command.warp" access="true" /> <right name="command.setdimension" access="true" /> <right name="command.setinterior" access="true" /> <right name="command.createteam" access="false" /> <right name="command.destroyteam" access="false" /> <right name="command.givevehicle" access="true" /> <right name="command.repair" access="true" /> <right name="command.blowvehicle" access="true" /> <right name="command.destroyvehicle" access="true" /> <right name="command.customize" access="true" /> <right name="command.setcolor" access="true" /> <right name="command.setpaintjob" access="true" /> <right name="command.listmessages" access="true" /> <right name="command.readmessage" access="true" /> <right name="command.listresources" access="true" /> <right name="command.execute" access="false" /> <right name="command.setpassword" access="false" /> <right name="command.setwelcome" access="false" /> <right name="command.setgame" access="false" /> <right name="command.setmap" access="false" /> <right name="command.setweather" access="true" /> <right name="command.blendweather" access="true" /> <right name="command.setblurlevel" access="true" /> <right name="command.setwaveheight" access="true" /> <right name="command.setskygradient" access="true" /> <right name="command.setgamespeed" access="true" /> <right name="command.setgravity" access="true" /> <right name="command.settime" access="true" /> <right name="command.unban" access="false" /> <right name="command.banserial" access="false" /> <right name="command.unbanserial" access="false" /> <right name="command.listbans" access="false" />
-
onClientResourceRestart? that event doesn't exist P.S: Why you put getPedOccupiedVehicle out of function?
-
ok, that wasn't tested, could you explain your bug? because the image you inserted in your post isn't working. Edit: Copy my code again, i have made some changes.
-
You are trying to copy a server, why? can't you think on your own ideas?
-
GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Grid = {} -- GUI Interface GUIEditor_Window[1] = guiCreateWindow(334,298,565,406,"XG Avatar | - Made by Pr0RaC3R - |",false) GUIEditor_Grid[1] = guiCreateGridList(9,25,253,372,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) column1 = guiGridListAddColumn(GUIEditor_Grid[1],"Avatar Category",0.5) column2 = guiGridListAddColumn(GUIEditor_Grid[1],"Select avatar",0.5) for i = 1, 10 do row = guiGridListAddRow(GUIEditor_Grid[1]) end guiGridListSetItemText ( GUIEditor_Grid[1], row, column1, 'Retro', false, false ) GUIEditor_Button[1] = guiCreateButton(273,359,132,36,"Save as default avatar",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(422,359,125,36,"Remove my avatar",false,GUIEditor_Window[1]) guiSetVisible ( GUIEditor_Window[1], false ) function drawAvatarPanel ( ) bindKey ( 'F7', 'down', showAvatarPanel ) end addEventHandler ( 'onClientResourceStart', resourceRoot, drawAvatarPanel ) function showAvatarPanel ( ) isVisible = guiGetVisible ( GUIEditor_Window[1] ) if (isVisible) then guiSetVisible ( GUIEditor_Window[1], false ) showCursor ( false ) end if (not isVisible) then guiSetVisible ( GUIEditor_Window[1], true ) showCursor ( true ) end end function onGridListClickShowColumn2Items ( button ) if (button) == 'left' and (guiGridListGetItemText(GUIEditor_Grid[1],guiGridListGetSelectedItem(GUIEditor_Grid[1]))) == 'Retro' then guiGridListSetItemText ( GUIEditor_Grid[1], 1, 2, 'Address', false, false ) guiGridListSetItemText ( GUIEditor_Grid[1], 2, 2, 'Ads', false, false ) guiGridListSetItemText ( GUIEditor_Grid[1], 3, 2, 'Calendar', false, false ) guiGridListSetItemText ( GUIEditor_Grid[1], 4, 2, 'Comment', false, false ) guiGridListSetItemText ( GUIEditor_Grid[1], 5, 2, 'Home', false, false ) guiGridListSetItemText ( GUIEditor_Grid[1], 6, 2, 'Mail', false, false ) guiGridListSetItemText ( GUIEditor_Grid[1], 7, 2, 'News', false, false ) guiGridListSetItemText ( GUIEditor_Grid[1], 8, 2, 'RSS', false, false ) guiGridListSetItemText ( GUIEditor_Grid[1], 9, 2, 'Search', false, false ) guiGridListSetItemText ( GUIEditor_Grid[1], 10, 2, 'Sign', false, false ) end end addEventHandler ( 'onClientGUIClick', root, onGridListClickShowColumn2Items ) function onGridListClickShowImage ( button ) if (button) == 'left' and (guiGridListGetItemText(GUIEditor_Grid[1],guiGridListGetSelectedItem(GUIEditor_Grid[1]))) == 'Address' then check() Picture1 = guiCreateStaticImage ( 357, 130, 128, 128, 'retro/address_128.png', false, GUIEditor_Window[1] ) elseif ( button ) == 'left' and (guiGridListGetItemText(GUIEditor_Grid[1],guiGridListGetSelectedItem(GUIEditor_Grid[1]))) == 'Ads' then check() Picture2 = guiCreateStaticImage ( 357, 130, 128, 128, 'retro/ads_128.png', false, GUIEditor_Window[1] ) elseif ( button ) == 'left' and (guiGridListGetItemText(GUIEditor_Grid[1],guiGridListGetSelectedItem(GUIEditor_Grid[1]))) == 'Calendar' then check() Picture3 = guiCreateStaticImage ( 357, 130, 128, 128, 'retro/calendar_128.png', false, GUIEditor_Window[1] ) elseif ( button ) == 'left' and (guiGridListGetItemText(GUIEditor_Grid[1],guiGridListGetSelectedItem(GUIEditor_Grid[1]))) == 'Comment' then check() Picture4 = guiCreateStaticImage ( 357, 130, 128, 128, 'retro/comment_128.png', false, GUIEditor_Window[1] ) elseif ( button ) == 'left' and (guiGridListGetItemText(GUIEditor_Grid[1],guiGridListGetSelectedItem(GUIEditor_Grid[1]))) == 'Home' then check() Picture5 = guiCreateStaticImage ( 357, 130, 128, 128, 'retro/home_128.png', false, GUIEditor_Window[1] ) end end addEventHandler ( 'onClientGUIClick', root, onGridListClickShowImage ) function check() if isElement(Picture1) then destroyElement(Picture1) end if isElement(Picture2) then destroyElement(Picture2) end if isElement(Picture3) then destroyElement(Picture3) end if isElement(Picture4) then destroyElement(Picture4) end if isElement(Picture5) then destroyElement(Picture5) end end Try if that works.
