-
Posts
271 -
Joined
-
Last visited
-
Days Won
2
Everything posted by Syntrax#
-
I don't think there is an available gamemode for this within the community.But it's not hard to script this and there are many possibilities within this.Will add it to my future plans and see what i can make out of it
-
He is talking about stickers you place on your vehicle, So for example he wants numbers on the side and during the selection of the number he can choose the position of the number on the Vehicle itself.Basically like the Need For Speed World Tuning System.
-
function giveoptions( thePlayer, seat, jacked) if getElementModel(getPedOccupiedVehicle( thePlayer )) ~= 572 then return end --if not in mower then just stop! if (getElementModel (source) == 572) then outputChatBox( "Do /startmowing to start mowing the grass!", getRootElement(), 10,255,0, false) end end addEventHandler('onVehicleEnter', root, giveoptions) -- Change it to this cause you are checking twice even though you already checked the element model once -- Also i've added the possibility to add several vehicles within this script in a table local AllowedVehicle = { 572 } -- To add more Vehicles fill in the following things in the AllowedVehicle Table AllowedVehicle = { ID, ID, ID, ...} function giveoptions( thePlayer, seat, jacked) local VehicleID = getElementModel(getPedOccupiedVehicle( thePlayer )) for i, v in pairs (AllowedVehicle) do if VehicleID == v then outputChatBox( "Do /startmowing to start mowing the grass!", thePlayer, 10,255,0, false) else return end end end addEventHandler('onVehicleEnter', root, giveoptions) Hope you like this and does it works because i'm writing this on my phone and not testing it
-
Do you have any method the police scripts detects if the player is jailed such as ElementData, cause then you could add the line where it gets the data if the player is jailed
-
What do you think about making catergories within the available objects, So you can have a cleaner view of what objects are available for which task.But then with a new design and an actual preview of the object itself in the air or in a room.
-
There isn't such a download but you could create it yourself or pay a scripter to do so
-
moveObject is smoother then just on client render, just calculate the distance to the point it has to move to and use some simple maths to gain the time of the object till it moves to that location For example s = distance (m) v = velocity (km/h) t = time (seconds) s = v * t so basically Distance = Velocity * time In order to get the time use Distance / Velocity (Speed of how fast you want it to move) = Time
-
You could use setAccountData for this but since this is a leaked Owlgaming gamemode i'm not going to help you out.
-
No problem if you have any other problem feel free to contact me through pm
-
math.ceil(number) for health, due the fact 1 hp will be considered as 0 when using math.floor
-
I can help with the further development if you want to
-
That's what i am saying, you can get the element in the hand.It isn't defined as element within mta nor do i know how to even get that.The only method i see is the crateWeapon function with the same model ID and attaching it to the players hand
-
https://wiki.multitheftauto.com/wiki/CreateWeapon take a look on this.Here you can create custom weapons which will be represented as an element.MTA doesn't recognize the default weapons as elements.You'll have to create custom weapons with this and define the projectile and it's destination where it will hit somebody.When it hit a player you could add the blood effect or anything you like.This is the only method i know to change the alpha of it.
-
Or just get streamed elements and count how many players there are
-
@Ren_712 is there any chance you can send an example this way cause fx is really something i want to learn and this can comd in handy with my new upcoming rpg server.
-
A script to avoid noobs in the server, oh wait there already is, it's called Dissonnect
-
Rows within mysql member ranks tables.Easier to look at and edit if needed.I do rather use this due the fact i'm more used to this.
-
Hmm thanks but using another method now which is more efficient
-
This works when having those above eachother.Now i have to find a method to get it back from MYSQL.The data has been stored as [["Headquarter","Leader","Prospect"]] But once i've done the query and Poll the results i've encountered a problem.It doesn't quite do anything.Tried For i, v in ipairs(resultdata) do outputDebugString(v) -- Outputs Table : random:~ outputDebugString(fromJSON(v)) -- Outputs nil end I've also tried For i, v in ipairs(resultdata) do stringG = v for i, v in ipairs(stringG) do outputDebugstring(v[1]) outputDebugstring(fromJSON(v)[1]) end end
-
That's why i love your team <3
-
Mafia didn't deny that mate