-
Posts
197 -
Joined
-
Last visited
Everything posted by Taalasmaa
-
It work with money, it save moneys BUT It doesn't save skins/weapons.. I'm using freeroam gamemode, so I need skin saver and weapons saver. Or my server is freeroam/fun/rpg ... Thanks in advance.
-
I didn't wanted answer from you.. And i'm looked these.. Thousand times!!
-
Hi, how can I make script, so there will be "autosave" like.. Always when player quit. His datas will be saved.. And when he join his datas will be loaded. I have to get save only for skins, weapons, moneys. Help?
-
Hi, I have simple house system.. So I can create houses for buy etc.. But How can I make so players can spawn to own house... Because I have gamemode which have teams like: Cop, Medic, Robber etc.. And if you are cop and you do /kill or die you will spawn to police station.. But I wanna, that if you are police AND You have own house.. And if you die you will spawn to own house.. Thanks!
-
I only need: Missions, Spawner for vehicles... Ready: House script, sam missiles to admin base, and of course little things
-
There is that id, how can I find right id ? In gta there is 11k object id's.. How can I find right ? Edit: Wtf are you talking about 50p? What am I lied now??? Stop spamming my topic if you dont help.
-
wtf are you talking about... Spawnplayer??? I mean how can I make GATE which open with command.. like /open there is what I tried, but it didnt work at all allObjects = getElementsByType ( "object" ) for key, theObject in ipairs ( allObjects ) do local 133.091675, 1941.873901, 19.320068 = getElementPosition ( theObject ) --get the origanal position local 18.950716 = 19.320068 + 100 -- make a new z position moveObject ( theObject, 10000, 133.091675, 1941.873901, 18.950716 ) --move the object to this position in 10 seconds. end addCommandHandler("open", moveObject)
-
Ok, so how can I do moving port to area51 like when you type /open port will open..
-
But when you tested that spawner did you have vehicle shop? Because I dont get it work.. Edit: Oh and how can you add houses (which you can buy) I tried kihc system, but didnt worked.. Does it happen with mapeditor?
-
... I can script, I know about script.. But I cant do this spawner... My shop is working, but when you blow your vehicle (which you did buy from shop) you cant spawn it again.. And Thats why I need the fucking spawner... I putted this into "spawner.client.lua addEventHandler( "onClientResourceStart", getResourceRootElement( getThisResource() ), function( ) -- inside of client-side script (in onClientResourceStart) wnd = Window:Create( 10, 250, 200, 100, "Spawn window" ); btn = wnd:AddButton( 15, 40, 100, 23, "SPAWN" ); btn:AddOnClick( function() -- when button is clicked, tell server about it triggerServerEvent( "YOUR_EVENT_TO_SPAWN_CAR", getLocalPlayer(), 560 ) -- 560 is id of car end) wnd:Visible( false )-- hide the window -- HERE: -- inside of client side script (just under wnd:Show( false )) bindKey( "o", "down", function( ) -- this will show window if it's hidden and hide if it's shown wnd:Visible( not wnd:Visible( ) ) end ) end ) and this I putted to to server side lua -- inside of server-side script addEvent( "YOUR_EVENT_TO_SPAWN_CAR", true ) addEventHandler( "YOUR_EVENT_TO_SPAWN_CAR", getRootElement( ), function( ID ) -- ID will be the one you put in client script (eg. 560 - "Sultan") x, y, z = getElementPosition( client ) -- client = player who triggered this event createVehicle( ID, x, y+3, z ); -- create vehicle by player end) And in meta file is correctly and its start correctly (script) How hard is it understand that script is installed correctly..
-
Nope, nothing warning or nothing it just start normal, but nothing happen ingame when you push "o".
-
Didnt worked. Script starts, but when you push "o" nothing happens
-
okay! there is file. This first file is spawner.client.lua -- inside of client-side script (in onClientResourceStart) wnd = Window:Create( 10, 250, 200, 100, "Spawn window" ); btn = wnd:AddButton( 15, 40, 100, 23, "SPAWN" ); btn:AddOnClick( function() -- when button is clicked, tell server about it triggerServerEvent( "YOUR_EVENT_TO_SPAWN_CAR", getLocalPlayer(), 560 ) -- 560 is id of car end) wnd:Visible( false )-- hide the window --------------------------------------------------------------------------------------- Second file is spawner.serv.lua -- inside of server-side script addEvent( "YOUR_EVENT_TO_SPAWN_CAR", true ) addEventHandler( "YOUR_EVENT_TO_SPAWN_CAR", getRootElement( ), function( ID ) -- ID will be the one you put in client script (eg. 560 - "Sultan") x, y, z = getElementPosition( client ) -- client = player who triggered this event createVehicle( ID, x, y+3, z ); -- create vehicle by player end) -- inside of client side script (just under wnd:Show( false )) bindKey( "o", "down", function( ) -- this will show window if it's hidden and hide if it's shown wnd:Visible( not wnd:Visible( ) ) end ) and meta file also ---------------------------------------------------------------------------------------- And of course there is your glasses files in classes folder Whats wrong? EDIT: Oh I forgot to say that I fixed cursor bug. I just putted "false"
-
Do I edit [ lua] [/lua ]'s to classes files too? or only spawner files ?
-
Okay did it.. But now is another problem: I started it in console and it worked, but when you are ingame there is "cursor" and you cant do nothing just stay and when you push "r" nothing isnt happening.. When you shut down script cursor is gone and you can play and move.. What is again wrong???
-
It didnt work either. It gave same error I maked "spawner" winzip archive to resources and putted there "spawner.client.lua and spawner.serv.lua and meta.xml" And started server and tried type "start spawner" and it gave this error: "attempt to call global 'window' " hey, whats wrong? I putted these: spawner.client.lua -- inside of client-side script (in onClientResourceStart) wnd = Window:Create( 10, 250, 200, 100, "Spawn window" ); btn = wnd:AddButton( 15, 40, 100, 23, "SPAWN" ); btn:AddOnClick( function() -- when button is clicked, tell server about it triggerServerEvent( "YOUR_EVENT_TO_SPAWN_CAR", getLocalPlayer(), 560 ) -- 560 is id of car end) wnd:Visible( false )-- hide the window spawner.serv.lua -- inside of client side script (just under wnd:Show( false )) bindKey( "r", "down", function( ) -- this will show window if it's hidden and hide if it's shown wnd:Visible( not wnd:Visible( ) ) end ) -- inside of server-side script addEvent( "YOUR_EVENT_TO_SPAWN_CAR", true ) addEventHandler( "YOUR_EVENT_TO_SPAWN_CAR", getRootElement( ), function( ID ) -- ID will be the one you put in client script (eg. 560 - "Sultan") x, y, z = getElementPosition( client ) -- client = player who triggered this event createVehicle( ID, x, y+3, z ); -- create vehicle by player end) and in meta.xml was authors and infos etc... What is going wrong?
-
I tested your script and it didnt worked.. I tried edit and I tried ALL, but it didnt work.. It gave error.. "attempt to call global 'create' " whats wrong? I TRIED EVERYTHING, maybe you can help.. Its true that I tried to get it work about 3hours... Its awesome if you can help with this.
-
Hello! I need more scripter to Finland RPG Server im one scripter. There is list what we need to server: 1. Missions (where you get money) 2. Sam missile to admin base (which you can turn off/on) 3. I have laready vehicle shop, but I need vehicle spawner (which you are bought already) So you can always spawn vehicles what are you bought Thanks
-
Any clearly? Because there was only how to create vehcile... So how can I make this: You go buy vehicle from my vehicle shop and when you bought vehicle and push "r" there is your vehicle which you did buy and you can spawn it with clicking "spawn"
-
Hello! I maked vehice shop for my server, but how can I spawn them? Help? I mean how can you make "panel" for example you push "r" and you get list for your vehicles and you can also spawn them.. Help? Thanks if somebody can help with this
-
Hello! I have own server and I have banks car shops etc.. But how can I add bank icons to map and of course car shops? And how can I script it so all players see all in map? thanks
-
Hello there! I know how to make simple login panel, but.. How can I make this img so you can see that? Is it even possible? Can somebody help...