Jump to content

Volltron

Members
  • Content Count

    21
  • Joined

  • Last visited

Community Reputation

1 Neutral

About Volltron

  • Rank
    Civilian

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I know, I've looked at it before this but it's not what i was looking for. I fixed it anyway by making an empty sniper scope with no crosshair and added a crosshair over it
  2. Same thing happens, but thank you anyway. I think there's just no way of getting rid of the black side bars when zooming in with the sniper
  3. Yes that's what I tried but the problem is the black bars and I was wondering if there's any way of just getting rid of them or if I have to get used to that and work with it https://i.imgur.com/2Vgw4w8.png
  4. I'm trying to change the whole sniper crosshair and scope but I get black bars instead of an empty screen when i aim with sniper Is there any way i can get rid of the black bars ? local shader = dxCreateShader("textureS.fx"); local texture = dxCreateTexture("empty.png"); dxSetShaderValue(shader, "crosshair_sniper", texture); engineApplyShaderToWorldTexture(shader, "snipercrosshair"); engineApplyShaderToWorldTexture(shader, "cameracrosshair"); https://i.imgur.com/gwD8ovY.png
  5. I did it and now it works, thanks for help ^^ I also had to put the event handlers for colshapes inside the create function to make it work
  6. Im struggling with how to use the values without declaring them local outside the function function createTreasure() local treasureRadar = createRadarArea( treasurePositions[randomRadar][1] - 25, treasurePositions[randomRadar][2] - 25, 50, 50, 255, 221, 0, 100) local treasureArea = createColRectangle( treasurePositions[randomRadar][1] - 25, treasurePositions[randomRadar][2] - 25, 50, 50) local treasureObject = createObject(2060, treasurePositions[randomRadar].tabel[randomTreasure][1], treasurePositions[randomRadar].tabel[randomTreasure][2], tr
  7. Yes but i want to make it so it only activates when the vehicle is upside down, i've tried using "onClientVehicleDamage" and "onClientVehicleCollision" when the car is turned 180(upside down) but it doesn't seem to trigger it
  8. Is it possible to stop vehicles from catching fire when they're upside down ? And if so what functions could I use ?
  9. I made it by canceling event and then subtracting the loss value from the other value but I'm still wondering if it's possible doing it while vehicle is damage proof
  10. I'm trying to make a script where another value takes the damage the vehicle gets instead of the vehicle's hp and I wanted to know if it's possible to make it so the player can "deal damage" to the other value as long as the vehicle is in "setVehicleDamageProof, true"
  11. Thanks for that haha, you saved my ass
  12. Hello there again, I have a problem with my script. I want to make so when someone plays music in their car it will make others near hear it too but it doesn't start and I don't know what the problem is Client : local music = "blah.wav" function playTheSound(x, y, z, vehicle) sound = playSound3D(music, x, y, z) attachElements(sound, vehicle) setSoundMaxDistance(sound,50) setSoundVolume(sound,1) end addEvent("playTheSound", true) addEventHandler("playTheSound", root, playTheSound) function stopTheSound(x, y, z) stopSound(sound) end addEvent("stopTheSound", true) addEventHandler("s
  13. Thanks, it works. The only problem is that anyone can write but only the admin sees what you write
  14. I wanted to make a script so that admins can chat between them function adminMessage(thePlayer, cmd, ...) local message = table.concat ( { ... }, " " ); local name = getPlayerName(thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) local tableadmin = { } if (isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) )) then table.insert(tableadmin,thePlayer) for i,admins in ipairs(tableadmin) do outputChatBox("#04B486[ADMIN-CHAT]"..name..": #FFFFFF"..message, admins, 255, 255, 255, true)
×
×
  • Create New...