xXMADEXx
Members-
Posts
2,718 -
Joined
-
Last visited
Everything posted by xXMADEXx
-
Trying to use Valhalla?
-
use the default functions, not the module functions: dbConnect
-
((Not Tested)) lol = createObject ( 987, 316.79, -1191.80, 74.90, 0, 0, 40 ) local isGateOpen = false; function brama() if ( not isGateOpen ) then moveObject ( lol, 2.5, 316.79, -1191.80, 69, 0, 0, 40 ) isGateOpen = true else moveObject ( lol, 2.5, 316.79, -1191.80, 74.90, 0, 0, 40 ) isGateOpen = false end end addCommandHandler("brama", brama )
-
Sorry about that. I have fixed the download button, try it now http://ros.scgmta.net/pages/scripts/vie ... TopBarChat
-
Oh, my bad. I didn't see that. ((Not Tested)) marker = createMarker(1949, -1705, 13,"corona",2,0,255,0) addEventHandler("onClientMarkerHit",marker, function( p ) local vh = getPedOccupiedVehicle ( p ) vehicles = {462} nm = tonumber ( vehicles [ math.random( #vehicles ) ] ) setElementModel ( vh, nm ) end)
-
Huh? @PARKAH - Do you have a "vehicles" table defined?
-
Thats because you need to loop a table, and create a row every index.
-
There might be something wrong with the .png file... Try converting the .png file to .jpg
-
Its because "Username" isn't defined in "loadAccount."
-
I 100% agree with that lol Can you Upgrade 50p Cars shops script and add the possibility of owning more than one vehicle? I can look into this.
-
Try this: local query = dbPoll(dbQuery(connect, "SELECT * FROM zshop WHERE accNev='?", accName ), -1 )
-
Darn
-
((not tested)) Server: exports.scoreboard:addScoreboardColumn('Rank',getRootElement(),1,40,' ') function scoreLevel () local account = getPlayerAccount(source) Level = getAccountData(account, "LV") if isGuestAccount ( account ) then setElementData(source, "Rank", 0) else setElementData(source, "Rank", tonumber( Level )) end end addEventHandler("onPlayerSpawn", getRootElement(), scoreLevel) Client: local Level = tonumber ( getElementData ( localPlayer, "Rank" ) ) if Level and fileExists ( ":experience/ranks/lvl_"..tostring ( Level )..".png" ) then size = dxGetFontHeight((0.7/1366)*sWidth, "bankgothic") dxDrawImage((557/1024)*sWidth, (666/768)*sHeight, size, size, ":experience/ranks/lvl_"..tostring ( Level )..".png") end
-
can give exmple ? i want learn it. i know all GUI but this i don't understand it addEventHandler ( "onClientGUIClick", button, function ( ) for _, player in ipairs ( getElementsByType ( "player" ) ) do local row = guiGridListAddRow ( grid ) guiGridListSetItemText ( grid, row, 1, getPlayerName ( player ), false, false ) end end )
-
Can't wait to see it :3 Yes thanks, I didn't know what were the difference between theses two events. If someone want to contribute to this gamemode, I really apreciate that. Actually, I need basic things like 3D walls. (Yes, it's very simple...). I can make it with 3Ds Max but I can't export it for GTA:SA. If someone have some minutes to spend on it. There is: And thanks again for all your comments. Regards, FatalTerror. Also exported vertex colors so that models don't appear too bright at night. I have not tested it in game so if anything doesn't look like it should let me know. I think 4 meter for height is too high because CJ is ~2m tall but I still made it. Picot point is in the corner of each model for easier alignment. Download: http://scripteditor.beta.mtasa.com/arch ... _walls.zip Good luck! Good job, 50p
-
All the objects are used somewhere in the game...
-
Try this: https://forum.multitheftauto.com/viewtop ... 08&t=57877
-
ah Didn't realize server could DDoS each other :3 not much of a networking wiz
-
Hi guys. So, as some of you may know that fetchRemote you can get files from web servers blah blah blah... Well, I did a test.. And when i did it on the server side I wrote this code: addEventHandler ( "onResourceStart", resourceRoot, function ( ) fetchRemote ( "scgmta.net", callback ) end ) function callback ( data, errors ) local file = fileOpen ( 'data.txt' ) or fileCreate ( 'data.txt' ) fileWrite ( file, "Errors: "..errors.."\n\nData:\n"..data ) fileClose ( file ) end And it executed 100% perfect... Then i tried it on the client side: addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) fetchRemote ( "scgmta.net", callback ) end ) function callback ( data, errors ) local file = fileOpen ( "d.txt" ) or fileCreate ( "d.txt" ) fileWrite ( file, "Errors: "..errors.."\n\nData:\n"..data ) fileClose ( file ) end And this is what I got: Errors: 1004 Data: ERROR So, I asked Castillo and he says that the web server must be hosted on the same PC that the MTA server is hosted on. I think that fetchRemote on client side should be able to do what the server side does (so the web server dosn't have to be hosted on the same computer.) Regards, xXMADEXx
-
Try this: local player = getLocalPlayer() kpk = guiCreateStaticImage(X, Y,W,H, "images/kpk.png", true) tab = guiCreateTabPanel(X, Y,W,H, true, kpk) tab_inventory = guiCreateTab("Weap:", tab) inventory_gridlist = guiCreateGridList (0.03, 0.03, 0.46, 0.94, true, tab_inventory) weapSlots = guiGridListAddColumn(inventory_gridlist, "??????", 0.9) function weapItemInInventory ( ) if ( weapSlots ) then for slot = 1, 12 do local weapon = getPedWeapon ( localPlayer, slot ) if ( weapon > 0 ) then local row = guiGridListAddRow ( inventory_gridlist ) guiGridListSetItemText ( inventory_gridlist, row, weapSlots, getWeaponNameFromID ( weapon ), false, false ) end end end end addEventHandler ( "onClientResourceStart", getResourceRootElement(), weapItemInInventory ) setTimer ( function ( ) guiGridListClear ( inventory_gridlist ) weapItemInInventory ( ) end, 5000, 0 )
-
addEventHandler('onResourceStart', resRoot, gpsSystem() ) Should be addEventHandler('onClientResourceStart', resRoot, gpsSystem )
-
Hi guys.. Its me again. So recently i've been very bored of not knowing what to do, just switching my webpage from MTA forums to RoScripts and Facebook... So i decided i'd make this topic... If you guys want some script made (not accepting extremely huge/full game modes) just submit a reply and in my free time ill try to get it done... However any scripts that I do make from this topic will be uploaded open-source to the MTA community so you can't get your own private resource.
-
The login system seems cool.
