Jump to content

[HELP] Robbing Script


Recommended Posts

Hello, i need some help with some code, i want to make a script so when a player steps on the collision, some random objects(from an array) are spawned, and the player is able to pick them up and put them in their car, much like a robbing script and once a place has been robbed, the collision and blip will respawn after 5-8 mins. but how do i do that?

this is all i have.

  
local collisions= 
{ 
    { 1,1,1 }; 
        { 2,3,4 }; 
        { 2,2,2 }; 
        { 4,3,2 }; 
} 
function createColshapesOnStart () 
--need to create mapblips and collsions 
--I dont know how to do this. 
end 
addEventHandler ("onResourceStart", resourceroot(), createColShapesOnStart) 
  
function playerStepOnCollision() 
--i want it to put 1-5 items from an array randomly near the collision, and the player must be able to pick them up and store them in a car(and the car can only store a number of items, depending on if its a van or car or truck) 
end 
  

Link to comment
Hello, i need some help with some code, i want to make a script so when a player steps on the collision, some random objects(from an array) are spawned, and the player is able to pick them up and put them in their car, much like a robbing script and once a place has been robbed, the collision and blip will respawn after 5-8 mins. but how do i do that?

this is all i have.

  
local collisions= 
{ 
    { 1,1,1 }; 
        { 2,3,4 }; 
        { 2,2,2 }; 
        { 4,3,2 }; 
} 
function createColshapesOnStart () 
--need to create mapblips and collsions 
--I dont know how to do this. 
end 
addEventHandler ("onResourceStart", resourceroot(), createColShapesOnStart) 
  
function playerStepOnCollision() 
--i want it to put 1-5 items from an array randomly near the collision, and the player must be able to pick them up and store them in a car(and the car can only store a number of items, depending on if its a van or car or truck) 
end 
  

Use these functions

createColCircle 
createColCuboid 
createColRectangle 
createColSphere 
createColTube 
createColPolygon 
createBlip 

P.S. We dont make scripts for people try first please. If you want someone to make the script for you

pay someone.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...