-
Posts
656 -
Joined
-
Days Won
9
Everything posted by SpecT
-
Have you tried with this: toggleAllControls(false,false,false) If yes then try to cancel the event onClientMouseMove
-
Save the day that the rent will expire with setAccountData. And on player login check if he has rented and if yes then get the date. If the current date is the same as the saved one then remove the rent state. Also don't use setElementDataif you want to keep the data saved. Use setAccountDatainstead.
-
Before you do any changes on it you should stop the server. And when you are done with editing the file save it and then start the server.
-
Well I was searching for tutorial cuz I got not much time to explain. I hope its okay to post youtube url with ACL tutorial. Url: To moderators: If it's not allowed just delete it.
-
You should edit the ACL.xml file (in your server folder). Just the same way you made your account with admin rights but now its resource. "Add object resource.SAPDFR into the Admin/RPC ACL" Instead of user.accountName, you should use resource.resourceName.
-
He means the radio called "User Track Radio". Use setRadioChannel and set to radio 12. And if you don't want to be switchable you should cancel the even onClientPlayerRadioSwitch setRadioChannel(12) onClientPlayerRadioSwitch cancelEvent()
-
That's what I'm talking about. As I said make other objects and put them in the object you resize. So they will simulate collisions. Example: You put a box, but you want it bigger. So you set its size to 2 (for example) But now you can go through some of its parts. Then you put other box objects in it but with normal size to simulate collisions.
-
Well when you resize objects the collisions stay the same but it just looks bigger. You could use other objects with 0 alpha to "simulate" collisions on that resized object.
-
What is that "SO" ? And which is 139 line ?
-
Setting the variable does nothing. You should send it with the other stuff (url,distance,x,y,z,rotation) Don't forget to edit the clientside function!
-
To learn ? These arguments seem to be from decompiled script. Anyway, good luck!
-
Then explain .. lel. You should use these things: onPlayerLogin getElementData setElementData Or if you know scripting with SQL then you could use it.
-
Well then update the code you post here (edit button). How could I know you made it right? As alw7sh said post here if there are any errors from debugscript 3.
-
You can do it using some basic math and mySQL He could make it easier and without the need of SQL server (if the server hosting doesn't have mysql then he should pay for website hosting with remote mysql). OFFTOPIC: Ah stop telling everyone in the forum to use MySQL for anything! You are getting annoying.
-
You forgot to put host= ... local dbType="mysql" local dbName="mta" local dbHost="127.0.0.1" local dbUsername="jingzhi" local dbPassword="" local dbConnection = dbConnect(dbType,"dbname="..dbName..";host="..dbHost.."",dbUsername,dbPassword) if dbConnection then outputDebugString("MySQL has been successfuly connected!") else outputDebugString("Failed to connect to MySQL!") end function dbConnection() return dbConnection end
-
IsConsoleActive
-
Any errors or warnings in debugscript 3 ?
-
Copy one of the lines with team details (xml file) and paste it on a new line and edit the team details.
-
I really can't understand what you want to tell me. If it's not working that's normal ... the arguments in setWorldSoundEnabled aren't set. Remove that line or put the right arguments! There is everything explained in the WIKI!
-
function fillTable() playerTable = {} for i,player in ipairs(getElementsByType("player")) do table.insert(playerTable,getPlayerNametagText(player)) end for k,v in pairs(playerTable) do local row = guiGridListAddRow(gridlist) guiGridListSetItemText(gridlist, row,1, tostring(v[1]), false, false) end end
-
Firstly show your code. To get full online player list (with nickname) use this: for i,player in ipairs(getElementsByType("player")) do getPlayerNametagText(player) end Note: This is just an example!
-
What ? Is that your full code or you just removed some stuff from that function? Here is the fixed code: function speak (player,x,y,z) setWorldSoundEnabled(!MISSING ARGUMENTS!) sound = playSound3D ("song.mp3", x, y, z) car = getPedOccupiedVehicle ( player ) attachElements(sound,car) setSoundMaxDistance( sound, 150 ) if isElement(sound) then stopSound(sound) end sound = playSound3D ("landing.mp3", x, y, z) setSoundMaxDistance( sound, 150 ) end addEvent ("Ansage", true) addEventHandler ("Ansage", getRootElement(), speak ) On line 2 check setWorldSoundEnabled and put the missing arguments in!
-
Yeah if you know how to work with SQL/MySQL/XML you could make one. Or use this resource: https://community.multitheftauto.com/index.php?p=resources&s=details&id=11325 The team settings are in the xml file. Also you can choose between 2 methods of detection - by ACL group or by TAG. Good luck!
-
You forgot to mention the player element in the client-side where you trigger the server side.
