-
Posts
1,134 -
Joined
-
Last visited
-
Days Won
37
Everything posted by NeXuS™
-
You could use this useful function, or inteporlateBetween.
-
We used a video on youtube.
- 7 replies
-
- 1
-
-
- intro
- cameramatrix
-
(and 2 more)
Tagged with:
-
If you use my example, it'll only trigger the client-sided script for the hitElement.
-
But let's wait for someone's answer.
-
triggerClientEvent(hitElement, "GoPro", hitElement) triggerClientEvent(hitElement, "ShowIron", hitElement)
-
@Zorgman, we have a GTA V scene on our server, which is played through HTML on full-screen, and works just perfectly.
- 7 replies
-
- intro
- cameramatrix
-
(and 2 more)
Tagged with:
-
I don't think it's a bug, as the performancebrowser works perfectly (or maybe works perfectly whenever I use it). Maybe it does recognized that it is already in memory and it doesn't need to be loaded again.
-
How i can see client console script?
NeXuS™ replied to CITMartin's topic in Open Source Contributors
Since the beginning mate. Look at the link I already sent. -
It'll be kinda hard with the MTA's mechanics. You'll have to use peds, setPedControlState and a ton of timing.
- 7 replies
-
- 1
-
-
- intro
- cameramatrix
-
(and 2 more)
Tagged with:
-
If MTA's debug doesn't output any error, there is no error in it. Use an outputChatBox to see if the server-sided script is getting loaded in or not.
-
Are you sure you've commented the whole resource out?
-
Try to write something else in the first line.
-
function shootProjectile() if not isTimer(shootCooldown) then shootCooldown = setTimer(function() end, 1000, 1) local vehicle = getPedOccupiedVehicle(localPlayer) -- Only create projectile if we are inside a vehicle if getElementModel(vehicle) == 411 then local x, y, z = getElementPosition(vehicle) createProjectile(vehicle, 19, x, y, z) end end end bindKey("vehicle_fire", "down", shootProjectile) Try it like this.
-
setElementData(hitElement, "Iron.pres", (getElementData(hitElement, "Iron.pres") or 0)+1) Try it like this.
-
Try to comment out the whole resource except the first line.
-
How to insert multiple values from select into table?
NeXuS™ replied to Protagonist95's topic in Scripting
mytable = {} function insertGangTable() local connection = dbConnect( "sqlite", "data.db" ) local gang_list = dbQuery( connection, "SELECT id,name FROM gang_list" ) local gang_list_result = dbPoll(gang_list, -1) if gang_list_result then for _,row in ipairs( gang_list_result ) do mytable[row["id"]] = row["name"] --- { [id] = "name" } end end end -
Does your script contain any UTF-8 codes? If it does, set the coding for it to UTF-8.
-
You'll have to try that out yourself.
-
You could, but you'll have to use onClientPlayerWeaponFire and removeWorldModel I think.
-
Yep, there is a way. Using createObject, attachElement, and maybe the onClientObjectDamage event.
-
outputChatBox something for people who has "Admin" as elementData?
NeXuS™ replied to TrickyTommy's topic in Scripting
Try to understand it from here. -
outputChatBox something for people who has "Admin" as elementData?
NeXuS™ replied to TrickyTommy's topic in Scripting
The "true" in your getElementData is not required, as it's optional arguments is true too. Does this not work, or what? You miss an "end", maybe thats why. -
function spawnVehicleF(x,y,z,VehicleName) id = getVehicleModelFromName(VehicleName) spawnVeh = spawnVehicle(id, -2322.58496, -1622.78491, 483.70908) end addEvent("onSpawnVehicle", true) addEventHandler("onSpawnVehicle",getRootElement(),spawnVehicleF) You can't name the function the same as you'd call the default MTA function or it'll recreate it.